Compose#

class torch_brain.transforms.Compose(transforms)[source]#

Bases: object

Compose several transforms together. All transforms will be called sequentially, in order, and must accept and return a single torch_brain.data.Data object, except the last transform, which can return any object.

Parameters:

transforms (list[Callable]) – list of transforms to compose.