mixup#
- torchaug.transforms.functional.mixup(tensor_1, tensor_2, lam, inplace=False)[source]#
Mix two tensors with linear interpolation.
The tensors should be floats.
- Parameters:
tensor_1 (
Tensor) – First tensor.tensor_2 (
Tensor) – Second tensor.lam (
float) – Mixing coefficient.inplace (
bool, optional) – Whether to perform the operation inplace.Default:False- Return type:
Tensor- Returns:
The mixed tensor.