.. _f-utilsbackendonnxruntime: module ``testing.test_utils.utils_backend_onnxruntime`` ======================================================= .. inheritance-diagram:: mlprodict.testing.test_utils.utils_backend_onnxruntime Short summary +++++++++++++ module ``mlprodict.testing.test_utils.utils_backend_onnxruntime`` Inspired from sklearn-onnx, handles two backends. :githublink:`%|py|5` Classes +++++++ +-------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ | class | truncated documentation | +=======================================================================================================+===============================================================================+ | :class:`InferenceSession2 ` | Overwrites class *InferenceSession* to capture the standard output and error. | +-------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+ Functions +++++++++ +--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +==================================================================================================+============================================================================================================================+ | :func:`_capture_output ` | | +--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ | :func:`compare_runtime ` | The function compares the expected output (computed with the model before being converted to ONNX) and the ONNX output ... | +--------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+ Methods +++++++ +------------------------------------------------------------------------------------------------------------+----------------------------------+ | method | truncated documentation | +============================================================================================================+==================================+ | :py:meth:`__init__ ` | Overwrites the constructor. | +------------------------------------------------------------------------------------------------------------+----------------------------------+ | :meth:`get_inputs ` | Overwrites method *get_inputs*. | +------------------------------------------------------------------------------------------------------------+----------------------------------+ | :meth:`get_outputs ` | Overwrites method *get_outputs*. | +------------------------------------------------------------------------------------------------------------+----------------------------------+ | :meth:`run ` | Overwrites method *run*. | +------------------------------------------------------------------------------------------------------------+----------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.testing.test_utils.utils_backend_onnxruntime :members: :special-members: __init__ :show-inheritance: