Process is aborted (core dumped) when axis is a large negative integer when calling tf.gather #62603
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
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.16.0
Custom code
Yes
OS platform and distribution
No response
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?
I am actually using 2.10.0 but I find this issue insists in 2.16.0-dev20231209 (tf-nightly). Here is the code to reproduce:
The process will directly be killed by the system when running above code.
Here is the related output:
Standalone code to reproduce the issue
import tensorflow as tf params = tf.constant([[0.69]]) indices = tf.constant([16]) axis = tf.constant(-9223372036854775808, dtype='int64') tf.gather(params,indices,axis=axis)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: