openvino.runtime.opset7.gelu#

openvino.runtime.opset7.gelu(data: Node, approximation_mode: str, name: str | None = None) 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.