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:
Returns:

dragon.vm.torch.Tensor – The output tensor.