.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/core/plot_intro.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_core_plot_intro.py: .. _l-plot-onnx-light-intro: Introduction to onnx-light =========================== This example gives a brief overview of *onnx-light*, a library that works with ONNX models without requiring protobuf. It demonstrates the use of the ``.. runpython::`` directive (executed at documentation build time) and a ``.. mermaid::`` diagram. .. mermaid:: graph LR A[Input tensor] --> B[ONNX Graph] B --> C[Output tensor] B --> D[onnx-light
no protobuf] D --> C .. GENERATED FROM PYTHON SOURCE LINES 23-28 Package version --------------- The snippet below is executed with ``.. runpython::`` so the output appears verbatim in the generated HTML page. .. GENERATED FROM PYTHON SOURCE LINES 28-33 .. code-block:: Python import onnx_light print(f"onnx-light version: {onnx_light.__version__}") .. rst-class:: sphx-glr-script-out .. code-block:: none onnx-light version: 0.1.0 .. GENERATED FROM PYTHON SOURCE LINES 34-42 What is onnx-light? -------------------- *onnx-light* manipulates ONNX models without the overhead of the protobuf serialization layer. The package exposes the same high-level abstractions (nodes, graphs, initializers) through plain Python data-classes, making it easier to embed in memory-constrained or dependency-free environments. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.020 seconds) .. _sphx_glr_download_auto_examples_core_plot_intro.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_intro.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_intro.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_intro.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_