.. _f-compress: module ``onnx_tools.compress`` ============================== Short summary +++++++++++++ module ``mlprodict.onnx_tools.compress`` Functions to simplify, compress an ONNX graph. Functions +++++++++ +-----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +===================================================================================+=======================================================================================================================+ | :func:`_check_expression ` | | +-----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`_compress_nodes ` | Compresses a sequence of node to make it more readable. If possible, it creates a node `Expression` with a graph ... | +-----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`_compress_nodes_once ` | Compresses a sequence of node to make it more readable. If possible, it creates a node `Expression` with a graph ... | +-----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`_fuse_node ` | Merges two nodes having one input/output in common. | +-----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :func:`compress_proto ` | Compresses a :epkg:`ModelProto`, :epkg:`FunctionProto`, :epkg:`GraphProto`. The function detects nodes outputting ... | +-----------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnx_tools.compress :members: :special-members: __init__ :show-inheritance: