.. _f-onnxexport: module ``onnx_tools.onnx_export`` ================================= Short summary +++++++++++++ module ``mlprodict.onnx_tools.onnx_export`` Exports an ONNX graph in a way it can we created again with a python script. It relies on :epkg:`jinja2` and :epkg:`autopep8`. Functions +++++++++ +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | function | truncated documentation | +======================================================================================================================+==================================================================================================+ | :func:`_nodes ` | | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node ` | | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node_graph ` | Translates a GraphProto into python. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node_if ` | Translates a node If into python. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node_loop ` | Translates a node Loop into python. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node_make_attribute_str ` | | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node_name ` | | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_python_make_node_scan ` | Translates a node Scan into python. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_rename_var ` | | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`_xop_make_node_name ` | | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export2cpp ` | Exports an ONNX model to the :epkg:`c` syntax. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export2numpy ` | Exports an ONNX model to the :epkg:`numpy` syntax. The exports does not work with all operators. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export2onnx ` | Exports an ONNX model to the :epkg:`onnx` syntax. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export2python ` | Exports an ONNX model to the *python* syntax. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export2tf2onnx ` | Exports an ONNX model to the :epkg:`tensorflow-onnx` syntax. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export2xop ` | Exports an ONNX model to the XOP syntax. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`export_template ` | Exports an ONNX model to the onnx syntax. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ | :func:`select_attribute ` | Returns the list of the same attribute. `[el.att for el in ens]`. | +----------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnx_tools.onnx_export :members: :special-members: __init__ :show-inheritance: