InferenceSession

A loaded model, ready to run. Instances are not required to be thread-safe; use one per thread.

Properties

Link copied to clipboard
abstract val inputNames: List<String>
Link copied to clipboard
abstract val outputNames: List<String>

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun run(inputs: Map<String, Tensor>): Map<String, Tensor>

Runs the model.