TensorPreprocessing

class TensorPreprocessing

Represents the tensor preprocessing stage of the Preprocessing. Consists of the operations implementing Preprocessor which are applied to the tensor one by one.

Supported operations include:

See also

Constructors

TensorPreprocessing
Link copied to clipboard
fun TensorPreprocessing()

Functions

addOperation
Link copied to clipboard
fun addOperation(operation: Preprocessor)

Adds an operation to the operations.

Extensions

normalize
Link copied to clipboard
fun TensorPreprocessing.normalize(block: Normalizing.() -> Unit)

Applies Normalizing preprocessor to the tensor to normalize it with given mean and std values.

rescale
Link copied to clipboard
fun TensorPreprocessing.rescale(block: Rescaling.() -> Unit)

Applies Rescaling preprocessor to the tensor to scale each value by a given coefficient.