module onnxrt.ops_cpu.op_elu
#
Short summary#
module mlprodict.onnxrt.ops_cpu.op_elu
Runtime operator.
Classes#
class |
truncated documentation |
---|---|
Elu === Elu takes one input data (Tensor<T>) and produces one output data (Tensor<T>) where the function f(x) = alpha * (exp(x) - 1.) for x < 0, … |
Properties#
property |
truncated documentation |
---|---|
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of modified parameters. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns all parameters in a dictionary. |
Methods#
method |
truncated documentation |
---|---|
Documentation#
Runtime operator.
- class mlprodict.onnxrt.ops_cpu.op_elu.Elu(onnx_node, desc=None, **options)#
Bases:
OpRunUnaryNum
===
Elu takes one input data (Tensor<T>) and produces one output data (Tensor<T>) where the function f(x) = alpha * (exp(x) - 1.) for x < 0, f(x) = x for x >= 0., is applied to the tensor elementwise.
Attributes
alpha: Coefficient of ELU. Default value is
namealphaf1.0typeFLOAT
(FLOAT)
Inputs
X (heterogeneous)T: 1D input tensor
Outputs
Y (heterogeneous)T: 1D output tensor
Type Constraints
T tensor(float16), tensor(float), tensor(double): Constrain input and output types to float tensors.
Version
Onnx name: Elu
This version of the operator has been available since version 6.
Runtime implementation:
Elu
- __init__(onnx_node, desc=None, **options)#
- _run(x, attributes=None, verbose=0, fLOG=None)#
Should be overwritten.
- to_python(inputs)#
Returns a python code equivalent to this operator.
- Parameters:
inputs – inputs name
- Returns:
imports, python code, both as strings