onnx_light.onnx.defs#
- class onnx_light.onnx.defs.OpSchema(*args, **kwargs)#
Schema of an operator.
- class DifferentiationCategory(*values)#
- class FormalParameterOption(*values)#
- class NodeDeterminism(*values)#
- class SupportType(*values)#
- property all_function_opset_versions#
(self) -> list[int]
- property attributes#
(self) -> dict[str, onnx_light.onnx_py._onnxpyprotolib.defs.OpSchema.Attribute]
- property context_dependent_function_opset_versions#
(self) -> list[int]
- property deprecated#
(self) -> bool
- property doc#
(self) -> str
- property domain#
(self) -> str
- property file#
(self) -> str
- property function_opset_versions#
(self) -> list[int]
- get_context_dependent_function(self, arg0: onnx_light.onnx_py._onnxpyprotoop.NodeProto, arg1: collections.abc.Sequence[onnx_light.onnx_py._onnxpyprotoop.TypeProto], /) object#
- get_context_dependent_function_with_opset_version(self, arg0: int, arg1: onnx_light.onnx_py._onnxpyprotoop.NodeProto, arg2: collections.abc.Sequence[onnx_light.onnx_py._onnxpyprotoop.TypeProto], /) object#
- property has_context_dependent_function#
(self) -> bool
- property has_data_propagation_function#
(self) -> bool
- property has_function#
(self) -> bool
- property has_type_and_shape_inference_function#
(self) -> bool
- property inputs#
(self) -> list[onnx_light.onnx_py._onnxpyprotolib.defs.OpSchema.FormalParameter]
- is_infinite = <nanobind.nb_func object>#
- property line#
(self) -> int
- property max_input#
(self) -> int
- property max_output#
(self) -> int
- property min_input#
(self) -> int
- property min_output#
(self) -> int
- property name#
(self) -> str
- property non_deterministic#
(self) -> bool
- property outputs#
(self) -> list[onnx_light.onnx_py._onnxpyprotolib.defs.OpSchema.FormalParameter]
- property since_version#
(self) -> int
- property support_level#
(self) -> onnx_light.onnx_py._onnxpyprotolib.defs.OpSchema.SupportType
- property type_constraints#
(self) -> list[onnx_light.onnx_py._onnxpyprotolib.defs.OpSchema.TypeConstraintParam]
- exception onnx_light.onnx.defs.SchemaError#
- onnx_light.onnx.defs.onnx_ir_version() int#
Returns the ONNX IR version exported by the C++ bindings.
- Returns:
The ONNX IR version.
- onnx_light.onnx.defs.register_onnx_operator_set_schema() None#
Registers all built-in ONNX operator schemas into the schema registry.
Registers every operator schema for every opset version that is compiled into onnx_light (i.e., the full ONNX standard operator set with history). Duplicate registrations are silently ignored, so the function is safe to call multiple times.
- Returns:
None.