.. _f-onnxinferencenode: module ``onnxrt.onnx_inference_node`` ===================================== .. inheritance-diagram:: mlprodict.onnxrt.onnx_inference_node Short summary +++++++++++++ module ``mlprodict.onnxrt.onnx_inference_node`` OnnxInferenceNode definition. :githublink:`%|py|5` Classes +++++++ +-------------------------------------------------------------------------------------+-------------------------+ | class | truncated documentation | +=====================================================================================+=========================+ | :class:`OnnxInferenceNode ` | A node to execute. | +-------------------------------------------------------------------------------------+-------------------------+ Properties ++++++++++ +----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +==============================================================================================+=======================================================================================================================+ | :meth:`inputs_args ` | Returns the list of arguments as well as the list of parameters with the default values (close to the signature). ... | +----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :meth:`modified_args ` | Returns the list of modified parameters. | +----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :meth:`name ` | Returns the ONNX name. | +----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ | :meth:`python_inputs ` | Returns the python arguments. | +----------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +-------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | staticmethod | truncated documentation | +=============================================================================================================+==============================================================================================================+ | :py:meth:`_find_local_inputs ` | Determines the local inputs. It is any defined input used by the subgraph and defined in the parent graph. | +-------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_find_static_inputs ` | Determines the loop inputs. It is any defined inputs by the subgraphs + any result used as a constant in ... | +-------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------+ Methods +++++++ +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +======================================================================================================================+=====================================================================================================================+ | :py:meth:`__init__ ` | | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | usual | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | usual | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_build_context ` | | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`_init ` | Prepares the node. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`add_variable_to_clean ` | Adds a variable which can be cleaned after the node execution. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`enable_inplace_compute ` | Let the node know that one input can be overwritten. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`get_local_inputs ` | Returns any local input used by this node in a subgraph defined as an attribute and not declared as an input of ... | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`preprocess_parameters ` | Preprocesses the parameters, loads *GraphProto* (equivalent to :epkg:`ONNX` graph with less metadata). | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`run ` | Runs the node. The function updates values with outputs. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`set_order ` | Defines the order of execution. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`setup_runtime ` | Loads runtime. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`switch_initializers_dtype ` | Switches all initializers to ``numpy.float64``. This only works if the runtime is ``'python'``. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`to_python ` | Returns a python code for this operator. | +----------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnxrt.onnx_inference_node :members: :special-members: __init__ :show-inheritance: