Core Examples#

Examples demonstrating the optimization features of onnx-light exposed by onnx_light.onnx_extensions.onnx_shapes (shape inference, expression helpers, …).

ComputeContext memory expressions

ComputeContext memory expressions

Evaluating inferred shapes with concrete input dimensions

Evaluating inferred shapes with concrete input dimensions

Optimized Shape inference

Optimized Shape inference

Qwen3-like ComputeContext memory profile

Qwen3-like ComputeContext memory profile

Shape inference with a custom operator

Shape inference with a custom operator

Statistics on the weights of an ONNX model

Statistics on the weights of an ONNX model

Symbolic expressions for dimensions

Symbolic expressions for dimensions

pretty_onnx: shape info, shape tags, inplace and release annotations

pretty_onnx: shape info, shape tags, inplace and release annotations

translate: turn an ONNX model back into Python code

translate: turn an ONNX model back into Python code

Gallery generated by Sphinx-Gallery