bartorch.flip

Contents

bartorch.flip#

bartorch.flip()#

Reverse input along axes.

Parameters:
  • input (torch.Tensor) – Array to flip.

  • axes (int or tuple of int) – Axes to reverse.

Returns:

The shape of input.

Return type:

torch.Tensor