You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
QuantizeAndDequantizeV3 causes hard crash instead of InvalidArgumentError when axis=-1 with non-scalar input_min/input_max #99456
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
binary
TensorFlow version
tf2.19, tf2.20, tf-nightly 2.21.0-dev20250827
Custom code
Yes
OS platform and distribution
Linux Ubuntu 22.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 I run the minimal reproduction code, the Python process terminates with a fatal CHECK failure instead of raising a catchable TensorFlow exception. Full error log:
2025-08-27 12:25:51.910891: F tensorflow/core/framework/tensor.cc:865]
Check failed: 1 == NumElements() (1 vs. 12) Must have a one element tensor
Aborted (core dumped)
This means the entire process crashes, which makes it impossible to catch the error in Python code (unlike a normal InvalidArgumentError)
Related issues:
I found a related report: tensorflow/tensorflow#94116
, which crashes with
tensorflow/core/framework/tensor_shape.cc:358] Check failed: d >= 0 (0 vs. -2)
My case is different: the crash happens in tensorflow/core/framework/tensor.cc:865 with a NumElements mismatch (1 vs. 12, must have a one element tensor).
Although both are shape-related CHECK failures, they are triggered in different code paths and should be considered distinct issues.
Activity
google-ml-butler commentedon Aug 27, 2025
Are you satisfied with the resolution of your issue?
Yes
No