.. _f-onnxhelper: module ``utils.onnx_helper`` ============================ Short summary +++++++++++++ module ``onnxcustom.utils.onnx_helper`` Onnx implementation of common functions used to train a model. :githublink:`%|py|6` Functions +++++++++ +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +======================================================================================================+======================================================================================================================+ | :func:`_finalize_new_onnx ` | | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`add_initializer ` | Adds an initializer to graph. | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`dtype_to_var_type ` | Converts a numpy dtype into a var type. | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`get_onnx_opset ` | Returns the opset associated to an opset. | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`onnx_rename_weights ` | Renames ONNX initializers to make sure their name follows the alphabetical order. The model is modified inplace. ... | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`proto_type_to_dtype ` | Converts a ONNX TensorProto type into numpy type. | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`replace_initializers_into_onnx ` | Replaces initializers by other initializers, usually trained ones. | +------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: onnxcustom.utils.onnx_helper :members: :special-members: __init__ :show-inheritance: