View source on GitHub |
Safe element-wise division which returns 0 where the denominator is 0.
tf.keras.ops.divide_no_nan(
x1, x2
)
Args | |
---|---|
x1
|
First input tensor. |
x2
|
Second input tensor. |
Returns | |
---|---|
The quotient x1/x2 , element-wise, with zero where x2 is zero.
|