Open JonOberry4662 opened 4 days ago
Hi @tilakrayal @JonOberry4662
If it's feasible, I'd like to investigate the issue, it seems to me that there are bugs in the casting operations in tensorflow/core/kernels/.
I can try to review the logic that defines the casting behavior for int8. You can add additional checks or adjust the way the values are handled.
What do you think?
@VadisettyRahul
Btw it works fine on tf2.12
https://colab.research.google.com/drive/1M0EcrsktHufkVZQomN8Z9eHZ20I35nCl?usp=sharing
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tf2.15 - 2.17
Custom code
No
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?
input is a long list include random numbers. tf.cast to int8 output is different from numpy cast.
The strange thing is if you truncate the long input list to a short list then things works fine.
The code is straight forward, you can reproduce it in the colab
Standalone code to reproduce the issue
Relevant log output