Skip to content

Some Check Failed errors in tf.raw_ops.Unbatch #65633

Closed

Description

@xl1043237213

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf 2.15

Custom code

No

OS platform and distribution

Linux Ubuntu 20.04

Mobile device

No response

Python version

3.10

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

Some Check Failed errors in tf.raw_ops.Unbatch, which causes the program to crash. See the colab link below for details.

Standalone code to reproduce the issue

https://colab.research.google.com/drive/1JRw_-UwodqwPx87naMM04nnFLaLaZcXn?usp=sharing

Relevant log output

Check failed: size >= 0 (0 vs. -1) Aborted (core dumped)
Check failed: d < dims() (1 vs. 1) Aborted (core dumped)
Check failed: new_num_elements == NumElements() (6 vs. 18) Aborted (core dumped)

Activity

  1. added
    comp:ops
    TF 2.15
    on Apr 18, 2024
  2. sushreebarsa commented on Apr 18, 2024

    @sushreebarsa
    Contributor

    @xl1043237213 I was able to replicate the issue here. Could you please ensure the input tensor has a batch dimension greater than 0. If you're working with a single sample, try to reshape it to have a batch dimension of 1. You can use tf.expand_dims(tensor, axis=0).
    Thank you!

  3. added
    stat:awaiting response
    on Apr 18, 2024
  4. xl1043237213 commented on Apr 18, 2024

    @xl1043237213
    Author

    Thanks for your answe.
    I can avoid such errors by checking the input or modifying the input, but I think it's an unexpected execution behavior and hoping that TensorFlow can fix this bug.

  5. removed
    stat:awaiting response
    on Apr 18, 2024
  6. added
    stat:awaiting tensorflower
    on Apr 18, 2024
  7. removed
    stat:awaiting tensorflower
    on Jun 2, 2026
  8. Kayyuri commented on Jun 2, 2026

    @Kayyuri

    Hi @xl1043237213,
    Thank you so much for filing this issue! We truly appreciate your support. At the moment, this request is not prioritized and mark it for community contributions. If you would like to contribute on a fix, please feel free to fork the repository and submit a pull request in accordance with the TensorFlow CONTRIBUTION GUIDELINES and link this issue in your PR to ensure the maintainers can easily review and collaborate.
    To avoid duplicate work, please leave a comment here if you decide to take it on!

    Thank you again for your interest and we look forward to seeing your contributions!

  9. added
    stat:contribution welcome
    on Jun 2, 2026
  10. removed
    stat:contribution welcome
    on Oct 20, 2026
  11. Venkat6871 commented on Oct 20, 2026

    @Venkat6871
    Contributor

    Hi @xl1043237213 ,
    Thank you for raising your concern here.
    A fix for this issue has been proposed in this #129230. Once it is merged, this issue will be resolved.

    Hi @bodapatisaikrishna ,
    Thank you for raising the PR to address this issue. We truly appreciate your initiative and the effort in contributing the fix.

  12. google-ml-butler commented on Oct 30, 2026

    @google-ml-butler

    Are you satisfied with the resolution of your issue?
    Yes
    No

  13. added a commit that references this issue on Oct 30, 2026
    b2ddfdd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

TF 2.15awaiting PR mergecomp:opstype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions