LocalDiffusionTextTokenizer

Defines the LocalDiffusionTextTokenizer contract for the SDAI ONNX local diffusion feature layer.

Author

Dmitriy Moroz

Inheritors

Properties

Link copied to clipboard
abstract val maxLength: Int

Exposes the maxLength value used by the SDAI ONNX local diffusion feature layer.

Functions

Link copied to clipboard
abstract fun close()

Executes the close step in the SDAI ONNX local diffusion feature layer.

Link copied to clipboard

Creates the SDAI value produced by createUnconditionalInput.

Link copied to clipboard
abstract fun decode(ids: IntArray?): String?

Executes the decode step in the SDAI ONNX local diffusion feature layer.

Link copied to clipboard
abstract fun encode(text: String?): IntArray?

Executes the encode step in the SDAI ONNX local diffusion feature layer.

Link copied to clipboard
abstract fun initialize()

Executes the initialize step in the SDAI ONNX local diffusion feature layer.

Link copied to clipboard
abstract fun tensor(ids: IntArray?): OnnxTensor?

Executes the tensor step in the SDAI ONNX local diffusion feature layer.