chainerx.right_shift

chainerx.right_shift(x1, x2)

Shift the bits of an integer to the right.

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

  • x2 (ndarray or scalar) – Input array of integers.

Returns

Return x1 with bits shifted x2 times to the right.

Return type

ndarray

Note

During backpropagation, this function does not propagate gradients.