Skip to content

Check failed in tf.raw_ops.UnbatchGrad when the input of original_input is empty. #65636

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?

When the input of original_input is empty, tf.raw_ops.UnbatchGrad will trigger Check failed of the input tensor dimension.

Standalone code to reproduce the issue

https://colab.research.google.com/drive/1ekseH5mJBvt3_SeK4MuAAM47U8qi5BEB?usp=sharing

Relevant log output

Check failed: d < dims() (0 vs. 0)
Aborted (core dumped)

Activity

  1. added
    TF 2.15
    comp:ops
    stat:awaiting tensorflower
    and removed
    TF 2.15
    on Apr 15, 2024
  2. tilakrayal commented on May 20, 2024

    @tilakrayal
    Contributor

    @xl1043237213,
    I was able to reproduce the issue on TensorFlow v2.15, v2.16 and tf-nightly. Kindly find the gist of it here.

    image

  3. removed
    stat:awaiting tensorflower
    on Jun 3, 2026
  4. Kayyuri commented on Jun 3, 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!

  5. added
    stat:contribution welcome
    on Jun 3, 2026
  6. removed
    stat:contribution welcome
    on Oct 5, 2026
  7. Venkat6871 commented on Oct 5, 2026

    @Venkat6871
    Contributor

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

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

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

    @google-ml-butler

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

TF 2.16awaiting PR mergecomp:opstype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions