19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
21 #include "ngraph/op/util/fused_op.hpp"
23 NGRAPH_SUPPRESS_DEPRECATED_START
33 class NGRAPH_API
Gelu :
public ngraph::op::util::FusedOp
37 const NodeTypeInfo& get_type_info()
const override {
return type_info; }
45 virtual OutputVector decompose_op()
const override;
47 void pre_validate_and_infer_types()
override;
49 virtual std::shared_ptr<Node>
50 clone_with_new_inputs(
const OutputVector& new_args)
const override;
57 NGRAPH_SUPPRESS_DEPRECATED_END
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:71
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Gaussian Error Linear Unit f(x) = 0.5 * x * (1 + erf( x / sqrt(2) )
Definition: gelu.hpp:34
Gelu(const Output< Node > &data)
Constructs an Gelu operation.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28