TransformScope
Scope that provides tensor transform DSL with an implicit execution context.
This allows for cleaner syntax when building pipelines within an execution context:
val pipeline = executionContext.transforms {
pipeline<Tensor<FP32, Float>>()
.rescale(255f)
.normalize(ImageNet.mean, ImageNet.std)
}Content copied to clipboard