Wrapper#
- class torchaug.transforms.Wrapper(transforms, inplace=False)[source]#
Wrap transforms to handle tensor data.
Note
Iterates through transforms and their submodules.
If
inplaceattribute is found, it is set toTrue,inplaceis handled at the wrapper level.
Note
If a transform makes a copy, the resulting tensor will not share the same underlying storage even if
inplaceis set toTrue.- Parameters:
transforms (
list[Module] |Module) – A list of transform modules.inplace (
bool, optional) – Whether to perform the transforms inplace. If a transform makes a copy, the resulting tensor will not share the same underlying storage.