Celu¶
Celu - 28¶
Version¶
name: Celu (GitHub)
domain:
mainsince_version:
28function:
Truesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 28.
Summary¶
Continuously Differentiable Exponential Linear Units: Perform the linear unit element-wise on the input tensor X using formula:
max(0,x) + min(0,alpha*(exp(x/alpha)-1))
Function Body¶
The function definition for this operator.
<
domain: "",
opset_import: ["" : 28]
>
Celu <alpha>(X) => (Y)
{
Alpha = Constant <value_float: float = @alpha> ()
AlphaCast = CastLike (Alpha, X)
XScaled = Div (X, AlphaCast)
EluResult = Elu <alpha: float = 1> (XScaled)
Y = Mul (AlphaCast, EluResult)
}
Attributes¶
alpha - FLOAT (default is
1.0):The Alpha value in Celu formula which control the shape of the unit. The default value is 1.0.
Inputs¶
X (heterogeneous) - T:
Input tensor
Outputs¶
Y (heterogeneous) - T:
Output tensor
Type Constraints¶
T in (
tensor(bfloat16),tensor(double),tensor(float),tensor(float16)):Constrain input and output types to float tensors.
Celu - 12¶
Version¶
name: Celu (GitHub)
domain:
mainsince_version:
12function:
Truesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 12.
Summary¶
Continuously Differentiable Exponential Linear Units: Perform the linear unit element-wise on the input tensor X using formula:
max(0,x) + min(0,alpha*(exp(x/alpha)-1))
Attributes¶
alpha - FLOAT (default is
1.0):The Alpha value in Celu formula which control the shape of the unit. The default value is 1.0.
Inputs¶
X (heterogeneous) - T:
Input tensor
Outputs¶
Y (heterogeneous) - T:
Output tensor
Type Constraints¶
T in (
tensor(float)):Constrain input and output types to float32 tensors.