class
CatTransform
extends
TransformCatTransform(transforms: list[Transform], dim: int = 0, lengths: list[int] | None = None)Apply different transforms to contiguous partitions along an axis.
Splits the input along dim into contiguous chunks of size
lengths[i] (one element each if lengths is None),
applies the -th transform to the -th chunk, and
concatenates the results back along the same axis.
Parameters
transformslist[Transform]One transform per partition.
dimint= 0Concatenation dimension. Default
0.lengthslist[int]= NoneLength of each partition. Default
None: one per transform.