mindspore.ops.flipud
- mindspore.ops.flipud(input)[source]
Flip the input tensor in up/down direction.
- Parameters
input (Tensor) – The input tensor, the dimension must be at least 2.
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> input = mindspore.tensor(mindspore.ops.arange(1, 9).reshape((2, 2, 2))) >>> output = mindspore.ops.flipud(input) >>> print(output) [[[5 6] [7 8]] [[1 2] [3 4]]]