then
Chains this transform with another transform, creating a pipeline.
The resulting transform applies this transform first, then applies next to the result. This is the primary mechanism for building preprocessing pipelines.
Example:
val resize = ImageResize(224, 224)
val toTensor = ImageToTensor()
val pipeline = resize then toTensor // Creates Transform<Image, Tensor>Content copied to clipboard
Return
A new transform that applies both transforms in sequence
Parameters
N
The output type of the next transform
next
The transform to apply after this one