Returns x / y element-wise, rounded towards zero.
tf.truncatediv(
x: _atypes.TensorFuzzingAnnotation[TV_TruncateDiv_T],
y: _atypes.TensorFuzzingAnnotation[TV_TruncateDiv_T],
name=None
) -> _atypes.TensorFuzzingAnnotation[TV_TruncateDiv_T]
Truncation designates that negative numbers will round fractional quantities
toward zero. I.e. -7 / 5 = -1. This matches C semantics but it is different
than Python semantics. See FloorDiv
for a division function that matches
Python Semantics.
Returns | |
---|---|
A Tensor . Has the same type as x .
|