Skip to content

Aborted (core dumped) in tf.raw_ops.QuantizeAndDequantizeV3 #69220

Closed

Description

@x0w3n

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf 2.16

Custom code

Yes

OS platform and distribution

Linux Ubuntu 22.04.3 LTS (x86_64)

Mobile device

No response

Python version

3.9.13

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

A crash is triggered when an unintended value is passed to the input parameter of the tf.raw_ops.QuantizeAndDequantizeV3 function.

Standalone code to reproduce the issue

import tensorflow as tf

input_data = tf.random.uniform(shape=[2, 1], maxval=9.0)
input_min = tf.constant([0, 1.0], dtype=tf.dtypes.float32)
input_max = tf.constant([1.0], dtype=tf.dtypes.float32)
# crash
tf.raw_ops.QuantizeAndDequantizeV3(input=input_data, input_min=input_min, input_max=input_max, num_bits=8, signed_input=True, range_given=True, narrow_range=False, axis=(- 1))

Relevant log output

2024-06-05 10:39:35.285635: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2024-06-05 10:39:36.361982: F tensorflow/core/framework/tensor.cc:852] Check failed: 1 == NumElements() (1 vs. 2)Must have a one element tensor
Aborted (core dumped)

Activity

  1. added
    comp:ops
    stat:awaiting tensorflower
    on Jun 7, 2024
  2. sushreebarsa commented on Jun 11, 2024

    @sushreebarsa
    Contributor

    @x0w3n I was able to replicate the issue reported here using TF v2.16 and tf-nightly.
    Thank you!

  3. Kayyuri commented on May 15, 2026

    @Kayyuri

    Hi @x0w3n,
    Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.

    It looks like the crash is triggered by a shape mismatch between input_min and input_max. Ensure that both input_min and input_max must matches the shape, to avoid the crash.

    The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.

    Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.

  4. added
    stat:awaiting response
    and removed
    stat:awaiting tensorflower
    on May 15, 2026
  5. github-actions commented on May 26, 2026

    @github-actions

    This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

  6. added
    stale
    on May 26, 2026
  7. github-actions commented on Jun 2, 2026

    @github-actions

    This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

  8. google-ml-butler commented on Jun 2, 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.16comp:opsstalestat:awaiting responsetype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions