tf.math.floormod

Returns element-wise remainder of division. When x < 0 xor y < 0 is

tf.math.floormod(
    x, y, name=None
)

true, this follows Python semantics in that the result here is consistent with a flooring divide. E.g. floor(x / y) * y + mod(x, y) = x.

NOTE: math.floormod supports broadcasting. More about broadcasting here

Args:

Returns:

A Tensor. Has the same type as x.