Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborted (core dumped) in QuantizedInstanceNorm #67528

Open
LongZE666 opened this issue May 14, 2024 · 1 comment
Open

Aborted (core dumped) in QuantizedInstanceNorm #67528

LongZE666 opened this issue May 14, 2024 · 1 comment
Assignees
Labels
comp:ops OPs related issues TF 2.16 type:bug Bug

Comments

@LongZE666
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf 2.16.1

Custom code

Yes

OS platform and distribution

Ubuntu 20.04

Mobile device

No response

Python version

No response

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

Abort is triggered when the input x does not meet the condition of dimension 4.

Standalone code to reproduce the issue

import tensorflow as tf

output_range_given = False
given_y_min = 0
given_y_max = 0
variance_epsilon = 1e-05
min_separation = 0.001
x = tf.constant([], shape=[0,0,0,1,1,0,0,0,11,9], dtype=tf.quint8)
x_min = tf.constant(-3.5e+35, shape=[], dtype=tf.float32)
x_max = tf.constant(0, shape=[], dtype=tf.float32)
tf.raw_ops.QuantizedInstanceNorm(x=x, x_min=x_min, x_max=x_max, output_range_given=output_range_given, given_y_min=given_y_min, given_y_max=given_y_max, variance_epsilon=variance_epsilon, min_separation=min_separation)

Relevant log output

2024-05-14 08:25:37.034690: F tensorflow/core/framework/tensor_shape.cc:45] Check failed: NDIMS == dims() (4 vs. 10)Asking for tensor of 4 dimensions from a tensor of 10 dimensions
Aborted (core dumped)
@SuryanarayanaY
Copy link
Collaborator

Hi @LongZE666 ,

I have replicated the behaviour with tf-nightly. Attached snapshot below. Thanks!

Screenshot 2024-05-15 at 9 33 20 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues TF 2.16 type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants