- ngraph.gelu(data: _pyngraph.Node, approximation_mode: str, name: Optional[str] = None) _pyngraph.Node ¶
Return a node which performs Gelu activation function.
data – The node with data tensor.
approximation_mode – defines which approximation to use (‘tanh’ or ‘erf’)
name – Optional output node name.
The new node performing a Gelu activation with the input tensor.