Model
A loaded ONNX model: callable with the inputs by name (or positionally
in input_names order), returning a dict of the outputs by name.
``graph`` is the compiled graph the calls run. ``onnx`` is the editable
model the file opened as when the model was loaded with
``keep_editable=True``; after editing it, :meth:`recompile` rebuilds
``graph`` with the same options. By default the editable model is
released once ``graph`` is built (``onnx`` reads None) and
:meth:`recompile` refuses, naming the knob.
input_names (property)
The input names, in the order positional calls bind them.
inputs (property)
The input slots (name, dtype, dims; -1 = dynamic).
output_names (property)
The output names, in the order the returned dict lists them.
outputs (property)
The output slots.
__init__
__init__(self, onnx: 'OnnxModel', options: 'CompileOptions', path: 'str', *, optimize: 'bool' = True, specialize: 'bool' = False, keep_editable: 'bool' = False) -> 'None'
Initialize self. See help(type(self)) for accurate signature.
recompile
recompile(self) -> 'None'
recompile() -> None
Rebuild the compiled graph from onnx with the load-time options
(after editing the model). Needs the editable model, so the load must
have kept it (keep_editable=True); otherwise
:class:~clika_runtime.InvalidArgumentError.