flipud¶
dragon.vm.torch.
flipud
(input)[source]¶Reverse elements along the first dimension.
Examples:
x = torch.tensor([[1, 2, 3], [4, 5, 6]]) print(torch.flipud(x)) # [4, 5, 6], [1, 2, 3]]
- Parameters:
- input (dragon.vm.torch.Tensor) – The input tensor.
- Returns:
dragon.vm.torch.Tensor – The output tensor.