PytorchBackend.mod#

PytorchBackend.mod(x1, x2, *args, **kwargs)[source]#

Element-wise modulus of arrays.

Parameters:
arr1BackendArray

The dividend array.

arr2BackendArray

The divisor array.

outBackendArray, optional

Output array to write the result to. Returns a new array by default.

Returns:
BackendArray

Element-wise modulus of the input arrays.