Package org.jetbrains.kotlinx.dl.dataset.preprocessor

Types

ONNXModelPreprocessor
Link copied to clipboard
class ONNXModelPreprocessor(onnxModel: OnnxInferenceModel?, outputIndex: Int) : Preprocessor

Applies the given onnxModel as a preprocessing stage.

Transpose
Link copied to clipboard
class Transpose(axes: IntArray) : Preprocessor

Reverse or permute the axes of an input tensor.

Functions

onnx
Link copied to clipboard
fun TensorPreprocessing.onnx(block: ONNXModelPreprocessor.() -> Unit)

Image DSL Preprocessing extension.

transpose
Link copied to clipboard
fun TensorPreprocessing.transpose(sharpBlock: Transpose.() -> Unit)

Image DSL Preprocessing extension.