then

open infix fun <N> then(next: Transform<O, N>): Transform<I, N>(source)

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>

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