.. _f-onnxtranslation: module ``onnx_tools.onnx_grammar.onnx_translation`` =================================================== Short summary +++++++++++++ module ``mlprodict.onnx_tools.onnx_grammar.onnx_translation`` One class which visits a syntax tree. :githublink:`%|py|5` Functions +++++++++ +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +==============================================================================================================+======================================================================================================================+ | :func:`get_default_context ` | Returns a default context useful for most of the conversion from a function using :epkg:`numpy` into :epkg:`ONNX`. | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`get_default_context_cpl ` | Returns a default useful context to compile the converter returned by :func:`translate_fct2onnx`. | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`py_make_float_array ` | Creates an array with a single element from a constant. | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`py_mul ` | Function for python operator ``*``. | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`py_opp ` | Function for python unary operator ``-``. | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`py_pow ` | Function for python operator ``**``. | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`squareform_pdist ` | Replacements for `squareform `_ ... | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | :func:`translate_fct2onnx ` | Translates a function into :epkg:`ONNX`. The code it produces is using classes *OnnxAbs*, *OnnxAdd*, ... | +--------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.onnx_tools.onnx_grammar.onnx_translation :members: :special-members: __init__ :show-inheritance: