.. _f-numpyonnximpl: module ``npy.numpy_onnx_impl`` ============================== Short summary +++++++++++++ module ``mlprodict.npy.numpy_onnx_impl`` :epkg:`numpy` functions implemented with :epkg:`onnx`. Functions +++++++++ +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +=================================================================+===============================================================================================================================+ | :func:`abs ` | See :func:`numpy.abs`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`acos ` | See :func:`numpy.acos`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`acosh ` | See :func:`numpy.acosh`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`amax ` | See :func:`numpy.amax`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`amin ` | See :func:`numpy.amin`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`arange ` | See :func:`numpy.arange`, *start*, *stop* must be specified. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`argmax ` | See :func:`numpy.argmax`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`argmin ` | See :func:`numpy.argmin`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`asin ` | See :func:`numpy.asin`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`asinh ` | See :func:`numpy.asinh`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`atan ` | See :func:`numpy.atan`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`atanh ` | See :func:`numpy.atanh`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`ceil ` | See :func:`numpy.ceil`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`clip ` | See :func:`numpy.clip`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`compress ` | See :func:`numpy.compress`. `numpy.compress(condition, x)` or `npnx.compress(x, condition)`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`concat ` | Operator concat, handle :func:`numpy.vstack` and :func:`numpy.hstack`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`cos ` | See :func:`numpy.cos`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`cosh ` | See :func:`numpy.cosh`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`cst ` | Creates a constant. `log(x) + numpy.float32(1)` works but `numpy.float32(32) + log(x)` fails because Python calls ... | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`cumsum ` | See :func:`numpy.cumsum`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`det ` | See :func:`numpy.linalg:det`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`dot ` | See :func:`numpy.dot` | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`einsum ` | See :func:`numpy.einsum`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`erf ` | See :epkg:`scipy:special:erf`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`exp ` | See :func:`numpy.exp`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`expand_dims ` | See :func:`numpy.expand_dims`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`expit ` | See :epkg:`scipy:special:expit`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`floor ` | See :func:`numpy.floor`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`hstack ` | See :func:`numpy.hstack`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`identity ` | Identity. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`isnan ` | See :func:`numpy.isnan`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`log ` | See :func:`numpy.log`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`log1p ` | See :func:`numpy.log1p`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`matmul ` | See :func:`numpy.matmul`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`mean ` | See :func:`numpy.mean`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`onnx_if ` | Implements a test with onnx syntax. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`pad ` | It does not implement :func:`numpy.pad` but the ONNX version :func:`onnx_pad `. ... | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`prod ` | See :func:`numpy.prod`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`reciprocal ` | See :func:`numpy.reciprocal`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`relu ` | relu | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`round ` | See :func:`numpy.round`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`sigmoid ` | See :epkg:`scipy:special:expit`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`sign ` | See :func:`numpy.sign`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`sin ` | See :func:`numpy.sin`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`sinh ` | See :func:`numpy.sinh`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`sqrt ` | See :func:`numpy.sqrt`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`squeeze ` | See :func:`numpy.squeeze`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`sum ` | See :func:`numpy.sum`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`tan ` | See :func:`numpy.tan`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`tanh ` | See :func:`numpy.tanh`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`topk ` | See :func:`numpy.argsort`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`transpose ` | See :func:`numpy.transpose`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`unsqueeze ` | See :func:`numpy.expand_dims`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`vstack ` | See :func:`numpy.vstack`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | :func:`where ` | See :func:`numpy.where`. | +-----------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlprodict.npy.numpy_onnx_impl :members: :special-members: __init__ :show-inheritance: