onnx_light.onnx.defs#

Schema helpers.

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.onnx_ml_opset_version() int#

Returns the current opset for domain ai.onnx.ml.

onnx_light.onnx.defs.onnx_opset_version() int#

Returns the current opset for domain ai.onnx.

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.

onnx_light.onnx.defs.register_schema(schema: OpSchema) None#

Registers a user-provided OpSchema.