Coder Social home page Coder Social logo

Comments (2)

svkgn4DL avatar svkgn4DL commented on April 30, 2024 1

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.

from tensorflow.

tilakrayal avatar tilakrayal commented on April 30, 2024

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

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.