Lambda¶
- class torchvision.transforms.v2.Lambda(lambd: Callable[[Any], Any], *types: Type)[source]¶
Apply a user-defined function as a transform.
This transform does not support torchscript.
- Parameters:
lambd (function) – Lambda/function to be used for transform.