Class ov::op::v0::Gelu#

class Gelu : public ov::op::util::UnaryElementwiseArithmetic#

Gaussian Error Linear Unit f(x) = 0.5 * x * (1 + erf( x / sqrt(2) )

Public Functions

Gelu(const Output<Node> &data)#

Constructs a Gelu operation.

Parameters:

dataInput tensor

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.