chainerx.remainder

chainerx.remainder(x1, x2)

Return element-wise remainder of division.

Parameters
  • x1 (ndarray or scalar) – Input array.

  • x2 (ndarray or scalar) – Input array.

Returns

Returned array: The element-wise remainder of the quotient floor_divide(x1, x2).

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input arrays x1 and x2.

See also

numpy.remainder