Skip to content

tf.nn.conv2d_transpose aborts process with malformed filter/output_shape arguments #125506

Closed

Description

@TTZTTZ1

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

No

Source

binary

TensorFlow version

tf2.21.0

Custom code

Yes

OS platform and distribution

Linux Ubuntu 22.04.5 LTS

Mobile device

N/A

Python version

3.10.20

Bazel version

N/A

GCC/compiler version

N/A

CUDA/cuDNN version

CUDA 13.0.88 cuDNN 9.x

GPU model and memory

NVIDIA GeForce RTX 5090 32G

Current behavior?

tf.nn.conv2d_transpose aborts the process when called with malformed filter and output_shape arguments.

The operation receives invalid argument types/shapes, causing TensorFlow to reach an internal C++ check failure instead of reporting an invalid input.

The process terminates with:

Check failed: d < dims() (2 vs. 0)
*** Check failure stack trace: ***
Aborted

Expected behavior:

TensorFlow should validate the types and shapes of filter and output_shape arguments and raise a framework-level exception such as InvalidArgumentError or ValueError instead of terminating the process.

Standalone code to reproduce the issue

import tensorflow as tf

output_image = tf.random.normal([1, 3, 3, 8])

tf.nn.conv2d_transpose(
    output_image,
    8,
    (2, 2),
    strides=(2, 2),
    padding="SAME",
)

Relevant log output

Check failed: d < dims() (2 vs. 0)
*** Check failure stack trace: ***
Aborted

Activity

  1. added
    comp:ops
    2.21.0
    on Aug 18, 2026
  2. Kayyuri commented on Aug 24, 2026

    @Kayyuri

    Hi @TTZTTZ1, Thank you for reporting this issue!
    A PR has been submitted to fix this issue, and it will be resolved once merged.

    Thank you to @adi-IL for working on the fix contributions.

  3. google-ml-butler commented on Sep 29, 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

2.21.0awaiting PR mergecomp:opstype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions