Compose
Compose
Bases: Transform
Compose several transforms together.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transforms
|
Sequence[Transform]
|
Sequence of instances of
|
required |
**kwargs
|
See |
{}
|
__call__(data)
Transform data and return a result of the same type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
TypeTransformInput
|
Instance of |
required |
inverse(warn=True)
Return a composed transform with inverted order and transforms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
warn
|
bool
|
Issue a warning if some transforms are not invertible. |
True
|
to_hydra_config()
Return a dictionary representation of the transform for Hydra instantiation.