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