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