onnx_light.onnx_op#
Python re-export of the onnx_op C++ extension (LightOpSchema).
This module exposes the lightweight operator-schema types defined in the C++
onnx_op library through a stable Python import path
(onnx_light.onnx_op). The underlying objects are implemented in C++
(onnx_light/onnx_op/light_op_schema.{h,cc} and the operator-set
registries under onnx_light/onnx_op/operator_sets_*.{h,cc}) and bound to
Python via onnx_light.onnx_py._onnxpy_op.
The LightOpSchema class is the onnx_light analogue of
onnx_light.onnx.defs.OpSchema: a read-only description of a single
versioned ONNX operator that documentation and validation tools can consume
without depending on the full upstream onnx package.
- onnx_light.onnx_op.get_all_schemas() list[Any]#
Returns the latest
LightOpSchemafor every known operator.For each
(domain, name)pair, only the schema with the highestsince_versionis kept.- Returns:
The latest lightweight schema per operator.
- Return type:
list[LightOpSchema]
- onnx_light.onnx_op.get_all_schemas_with_history() list[Any]#
Returns every registered
LightOpSchema, including past versions.The returned list contains one
LightOpSchemaper(domain, name, since_version)triple known to the lightweight operator registry shipped withonnx_light. The ordering is the one used by the C++ extension and is stable across calls.- Returns:
All registered lightweight schemas, including historical opset versions.
- Return type:
list[LightOpSchema]