chainerx.flip

chainerx.flip(m, axis)

Reverse the order of elements in an array along the given axis.

Parameters
  • m (ndarray) – Input Array.

  • axis (int or tuple of ints) – Axis or axes along which to flip over.

  • default (The) –

  • axis=None

  • flip over all of the axes of the input array. (will) –

  • axis is negative it counts from the last to the first axis. (If) –

  • axis is a tuple of ints (If) –

  • is performed on all of the (flipping) –

  • specified in the tuple. (axes) –

Returns

A view of m with the entries of axis reversed. Since a view is returned, this operation is done in constant time.

Return type

ndarray

Note

  • Output array is a view of the input array.

  • During backpropagation, this function propagates the gradients of the output arrays to the input array m.

See also

numpy.flip()