Skip to main content

//clika-runtime/io.clika.runtime/ModelGraph/run

run

[common]
fun run(inputs: List<Tensor>): List<Tensor>

Run with positional inputs (one per inputNames entry, that order); the outputs in outputNames order, fresh tensors the caller owns.

[common]
fun run(inputs: Map<String, Tensor>): List<Tensor>

Run with named inputs (every runtime input present, every name an input); the outputs in outputNames order.

[common]
fun run(inputs: List<Tensor>, boundOutputs: List<Tensor>): List<Tensor>

Run with positional inputs, landing the results in boundOutputs, one caller-preallocated buffer per outputNames entry shaped and typed to accept its result; the answered tensors alias the bound buffers.

[common]
fun run(inputs: Map<String, Tensor>, boundOutputs: Map<String, Tensor>): List<Tensor>

Run with named inputs and named output bindings (every binding name an output; an unbound output comes back fresh).