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

Check failed and other errors in tf.unstack when dtype of axis is uint64. #65630

Open
xl1043237213 opened this issue Apr 13, 2024 · 2 comments
Open
Assignees
Labels
comp:ops OPs related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.15 For issues related to 2.15.x type:bug Bug

Comments

@xl1043237213
Copy link

xl1043237213 commented Apr 13, 2024

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf 2.15

Custom code

No

OS platform and distribution

Linux 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?

axis of tf.unstack does support inputs with dtype uint64, which produces odd error messages such as "ValueError: Argument axis = 1 not in range [-2, 2)". Meanwhile, rather oddly, the axis = tf.constant(1, dtype=tf.uint64) triggers OverflowError, and and repeating this error triggers Check failed. See the colab link below for details.

Standalone code to reproduce the issue

https://colab.research.google.com/drive/10Eruvnb1cArC2SBz010lDNIKVd9VRd3i#scrollTo=ZOa0hboFxZ8B

Relevant log output

Check failed: !PyErr_Occurred()
Aborted (core dumped)
@google-ml-butler google-ml-butler bot added the type:bug Bug label Apr 13, 2024
@tilakrayal tilakrayal added TF 2.15 For issues related to 2.15.x comp:ops OPs related issues labels Apr 15, 2024
@tilakrayal
Copy link
Contributor

@xl1043237213,
The args axis for the API tf.unstack should work with int as mentioned with the document. Here you are trying with the uint64 which is not supported. I tried with the int and it was executed as expected. Kindly find the gist of it here.

https://www.tensorflow.org/api_docs/python/tf/unstack#args

Thank you!

@tilakrayal tilakrayal added the stat:awaiting response Status - Awaiting response from author label Apr 15, 2024
@svkgn4DL
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

binary

TensorFlow version

tf 2.15

Custom code

No

OS platform and distribution

Linux 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?

axis of tf.unstack does support inputs with dtype uint64, which produces odd error messages such as "ValueError: Argument axis = 1 not in range [-2, 2)". Meanwhile, rather oddly, the axis = tf.constant(1, dtype=tf.uint64) triggers OverflowError, and and repeating this error triggers Check failed. See the colab link below for details.

Standalone code to reproduce the issue

https://colab.research.google.com/drive/10Eruvnb1cArC2SBz010lDNIKVd9VRd3i#scrollTo=ZOa0hboFxZ8B

Relevant log output

Check failed: !PyErr_Occurred()
Aborted (core dumped)

Users expect it to raise some exception incase of invalid input and not definitely the crash.

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Status - Awaiting response from author label Apr 17, 2024
@tilakrayal tilakrayal added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.15 For issues related to 2.15.x type:bug Bug
Projects
None yet
Development

No branches or pull requests

3 participants