.. _f-onnxoptimisationcommon: module ``onnx_tools.optim._onnx_optimisation_common`` ===================================================== Short summary +++++++++++++ module ``mlprodict.onnx_tools.optim._onnx_optimisation_common`` Common functions to reduce the number of nodes of an :epkg:`ONNX` graphs. :githublink:`%|py|6` Functions +++++++++ +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | function | truncated documentation | +==========================================================================================================================+=========================================================================+ | :func:`_apply_optimisation_on_graph ` | Applies an optimisation function *fct* on a graph and not on the model. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_apply_remove_node_fct_node ` | Applies an optimizing function on a subgraphs. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_copy_value_info_proto ` | | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_make_att_graph ` | | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_make_node ` | Constructs a NodeProto. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_rename_graph_input ` | Renames an input and adds an *Identity* node to connect the dots. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_rename_graph_output ` | Renames an output and adds an *Identity* node to connect the dots. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_rename_node_input ` | Renames an input from a node. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_rename_node_output ` | Renames an output from a node. | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ | :func:`_replace ` | | +--------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnx_tools.optim._onnx_optimisation_common :members: :special-members: __init__ :show-inheritance: