Lambda

class torchaug.transforms.Lambda(lambd, *types)[source]

Apply a user-defined function as a transform.

This transform does not support torchscript.

Parameters:

lambd (Callable[[Any], Any]) – Lambda/function to be used for transform.

extra_repr()[source]

Set the extra representation of the transform.

Return type:

str