PreprocessingPipeline

class PreprocessingPipeline<I, M, O>(firstOp: Operation<I, M>, secondOp: Operation<M, O>) : Operation<I, O>

This class is a special type of Operation which is used to build typesafe pipeline of preprocessing operations. Kudos to @juliabeliaeva for the idea.

Constructors

PreprocessingPipeline
Link copied to clipboard
fun <I, M, O> PreprocessingPipeline(firstOp: Operation<I, M>, secondOp: Operation<M, O>)

Functions

apply
Link copied to clipboard
open override fun apply(input: I): O

Performs preprocessing operation on the input.

getOutputShape
Link copied to clipboard
open override fun getOutputShape(inputShape: TensorShape): TensorShape

Returns shape of the output of the operation having input of shape inputShape.