.. _f-onnxrewriter: module ``utils.onnx_rewriter`` ============================== Short summary +++++++++++++ module ``onnxcustom.utils.onnx_rewriter`` Rewrites operator in ONNX graph. :githublink:`%|py|5` Functions +++++++++ +--------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +==================================================================================================+================================================================================================================================+ | :func:`_existing_names ` | Makes the list of existing names. Returns a set of unique names including intermediate results. | +--------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :func:`_onnx_rewrite_operator_node ` | Replaces a node by a subgraph. | +--------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :func:`_unique_name ` | Returns a name different from any name in *existing_names*. | +--------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :func:`onnx_rewrite_operator ` | Replaces one operator by an onnx graph. | +--------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :func:`unreduced_onnx_loss ` | Every loss function reduces the results to compute a loss. The score function needs to get the loss for every observation, ... | +--------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: onnxcustom.utils.onnx_rewriter :members: :special-members: __init__ :show-inheritance: