flip_vertical
- selfeeg.augmentation.functional.flip_vertical(x: ArrayLike) ArrayLike[source]
changes the sign of all the elements of the input.
- Parameters:
x (ArrayLike) – The input Tensor or Array.
- Returns:
x (ArrayLike) – The augmented version of the input Tensor or Array.
Example
>>> import torch >>> import selfeeg.augmentation as aug >>> x = torch.randn(64,32,512) >>> xaug = aug.phase_swap(x)