Returns x / y element-wise, rounded towards zero.
tf.truncatediv(
x: Annotated[Any, tf.raw_ops.Any
],
y: Annotated[Any, tf.raw_ops.Any
],
name=None
) -> Annotated[Any, tf.raw_ops.Any
]
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 .
|