ngraph.opset3.gelu¶
-
ngraph.opset3.
gelu
(node: Union[_pyngraph.Node, int, float, numpy.ndarray], name: Optional[str] = None) → _pyngraph.Node¶ Perform Gaussian Error Linear Unit operation element-wise on data from input node.
Computes GELU function:
\[f(x) = 0.5\cdot x\cdot(1 + erf( \dfrac{x}{\sqrt{2}})\]For more information refer to [Gaussian Error Linear Unit (GELU)](https://arxiv.org/pdf/1606.08415.pdf>)
- Parameters
node – Input tensor. One of: input node, array or scalar.
name – Optional output node name.
- Returns
The new node performing a GELU operation on its input data element-wise.