-
Notifications
You must be signed in to change notification settings - Fork 74k
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
tf.keras.backend.eye crash (abort) with large input #57711
Comments
@sachinprasadhs, |
This is due to the very large input which is causing OOM/ memory overflow with large input, when you try large value like tf.int32.max, you will get the error output.
|
@sachinprasadhs Hi, Thanks for looking into this. With the input I provided, I see a crash (abortion) instead of an OOM error. As public APIs, it would be great to have the functions kindly throw exceptions for these cases instead of crashing. |
Added a PR #57790 for the fix. |
@DNXie, |
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. |
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. |
Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
2.11.0-dev20220914
Custom Code
No
OS Platform and Distribution
Ubuntu 18.04.4 LTS (x86_64)
Mobile device
No response
Python version
3.7.6
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
N/A
GPU model and memory
No response
Current Behaviour?
tf.keras.backend.eye
andtf.eye
crash (abort) with large inputAlso reproduced in this gist
Standalone code to reproduce the issue
Relevant log output
2022-09-15 18:51:32.477313: F tensorflow/core/framework/tensor_shape.cc:572] Check failed: size >= 0 (0 vs. -1542754321) Aborted (core dumped)
The text was updated successfully, but these errors were encountered: