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, axis=None, will flip over all of the axes of the input array. (The) –
axis is negative it counts from the last to the first axis. (If) –
axis is a tuple of ints, flipping is performed on all of the (If) –
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
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