math floordiv function gives incorrect result #56130
Labels
comp:ops
OPs related issues
stat:awaiting response
Status - Awaiting response from author
TF 2.8
type:bug
Bug
Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
2.8
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 Behaviour?
works as expected, giving
<tf.Tensor: shape=(1,), dtype=float32, numpy=array([-1.], dtype=float32)>
.However
gives
<tf.Tensor: shape=(1,), dtype=float32, numpy=array([-0.], dtype=float32)>
.Any idea why when x gets small enough it starts to output
-0.
rather than-1.
.1e-38
is still in range for float32 I believe so I think it should still work?Relevant log output
No response
The text was updated successfully, but these errors were encountered: