DivModΒΆ
Return element-wise quotient and remainder simultaneously.
Abstract Signature:
DivMod(x1: Tensor, x2: Tensor)
PyTorch
API:
βStrategy: Macro '(torch.div({x1}, {x2}, rounding_mode='floor'), torch.remainder({x1}, {x2}))'
Keras
API:
βStrategy: Macro '(keras.ops.floor_divide({x1}, {x2}), keras.ops.mod({x1}, {x2}))'