:orphan:
Optimization Examples
=====================
Examples demonstrating the optimization features of *onnx-light*
exposed by :mod:`onnx_light.onnx_optim` (shape inference, expression
helpers, ...).
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples_optimization/images/thumb/sphx_glr_plot_compute_context_memory_thumb.png
:alt:
:doc:`/auto_examples_optimization/plot_compute_context_memory`
.. raw:: html
ComputeContext memory expressions
.. raw:: html
.. only:: html
.. image:: /auto_examples_optimization/images/thumb/sphx_glr_plot_evaluate_shapes_thumb.png
:alt:
:doc:`/auto_examples_optimization/plot_evaluate_shapes`
.. raw:: html
Evaluating inferred shapes with concrete input dimensions
.. raw:: html
.. only:: html
.. image:: /auto_examples_optimization/images/thumb/sphx_glr_plot_shape_inference_thumb.png
:alt:
:doc:`/auto_examples_optimization/plot_shape_inference`
.. raw:: html
Optimized Shape inference
.. raw:: html
.. only:: html
.. image:: /auto_examples_optimization/images/thumb/sphx_glr_plot_shape_inference_custom_op_thumb.png
:alt:
:doc:`/auto_examples_optimization/plot_shape_inference_custom_op`
.. raw:: html
Shape inference with a custom operator
.. raw:: html
.. only:: html
.. image:: /auto_examples_optimization/images/thumb/sphx_glr_plot_expressions_thumb.png
:alt:
:doc:`/auto_examples_optimization/plot_expressions`
.. raw:: html
Symbolic expressions for dimensions
.. raw:: html
.. only:: html
.. image:: /auto_examples_optimization/images/thumb/sphx_glr_plot_pretty_onnx_thumb.png
:alt:
:doc:`/auto_examples_optimization/plot_pretty_onnx`
.. raw:: html
pretty_onnx: shape info, shape tags, inplace and release annotations
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples_optimization/plot_compute_context_memory
/auto_examples_optimization/plot_evaluate_shapes
/auto_examples_optimization/plot_shape_inference
/auto_examples_optimization/plot_shape_inference_custom_op
/auto_examples_optimization/plot_expressions
/auto_examples_optimization/plot_pretty_onnx
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_optimization_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_optimization_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery