Skip to main content

ModelGraph

__init__

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

input_names

input_namesinput_names(self) -> list[str]

input_names(self) -> list[str]

Runtime input names, declaration order; the order the positional run() binds.

inputs

inputsinputs(self) -> list

inputs(self) -> list

Input slots as (name, DataType, dims) tuples; a dynamic dim reads as -1.

output_names

output_namesoutput_names(self) -> list[str]

output_names(self) -> list[str]

Output names, declaration order; the order run() returns.

outputs

outputsoutputs(self) -> list

outputs(self) -> list

Output slots as (name, DataType, dims) tuples.

run

runrun(self, inputs: collections.abc.Sequence[clika_runtime._core.Tensor]) -> list[clika_runtime._core.Tensor]

run(self, inputs: collections.abc.Sequence[clika_runtime._core.Tensor]) -> list[clika_runtime._core.Tensor] run(self, inputs: dict) -> list[clika_runtime._core.Tensor]

Overloaded function.

  1. run(self, inputs: collections.abc.Sequence[clika_runtime._core.Tensor]) -> list[clika_runtime._core.Tensor]

Run with positional inputs (input_names() order); returns the outputs in output_names() order.

  1. run(self, inputs: dict) -> list[clika_runtime._core.Tensor]

Run with named inputs (dict[str, Tensor], strict); returns the outputs in output_names() order.