Gelu¶
Gelu - 20¶
Version¶
name: Gelu (GitHub)
domain:
mainsince_version:
20function:
Truesupport_level:
SupportType.COMMONshape inference:
True
This version of the operator has been available since version 20.
Summary¶
Gelu takes one input data (Tensor
Attributes¶
approximate - STRING (default is
'none'):Gelu approximation algorithm:
"tanh","none"(default)."none": do not use approximation."tanh": use tanh approximation.
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.