Skip to content

tf.raw_ops.QuantizeAndDequantizeV3 aborts with "Check failed: d >= 0 (0 vs. -4)" #87421

Closed

Description

@cybersupersoap

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf-nightly 2.19.0

Custom code

Yes

OS platform and distribution

Linux Ubuntu 20.04

Mobile device

No response

Python version

3.10.14

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

I encountered an aborted issue in TensorFlow when I used API tf.raw_ops.QuantizeAndDequantizeV3 . I have confirmed that below code would crash on tf-nightly 2.19.0-dev20250207 (nightly-build).
Please find the gist to reproduce the issue.

Standalone code to reproduce the issue

import tensorflow as tf
import numpy as np

input_data = tf.random.uniform(shape=[1, 2, 3, 2], dtype=tf.dtypes.float32)
input_min = tf.constant([0.0], dtype=tf.dtypes.float32)
input_max = tf.constant([1.0], dtype=tf.dtypes.float32)
output = 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=-4, name=None)

Relevant log output

2025-02-17 12:20:26.671705: F tensorflow/core/framework/tensor_shape.cc:358] Check failed: d >= 0 (0 vs. -4)
Aborted (core dumped)

Activity

  1. tilakrayal commented on Feb 18, 2025

    @tilakrayal
    Contributor

    @cybersupersoap,
    I request you to take a look at this issue where a similar issue was raised and it is still open. Also I request to follow the similar issues which has been proposed to have the updates on the similar issue. Thank you!

  2. added
    stat:awaiting response
    on Feb 18, 2025
  3. cybersupersoap commented on Feb 18, 2025

    @cybersupersoap
    ContributorAuthor

    @cybersupersoap, I request you to take a look at this issue where a similar issue was raised and it is still open. Also I request to follow the similar issues which has been proposed to have the updates on the similar issue. Thank you!

    Thank you for your reply!

  4. removed
    stat:awaiting response
    on Feb 18, 2025
  5. added
    stat:awaiting response
    on Feb 18, 2025
  6. github-actions commented on Feb 26, 2025

    @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.

  7. added
    stale
    on Feb 26, 2025
  8. github-actions commented on Mar 5, 2025

    @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.

  9. google-ml-butler commented on Mar 5, 2025

    @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.18comp:opsstalestat:awaiting responsetype:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions