19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
35 static constexpr NodeTypeInfo type_info{
"Elu", 0};
36 const NodeTypeInfo&
get_type_info()
const override {
return type_info; }
42 Elu(
const Output<Node>& data,
const double alpha);
47 virtual std::shared_ptr<Node>
48 clone_with_new_inputs(
const OutputVector& new_args)
const override;
50 double get_alpha()
const {
return m_alpha; }
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
const NodeTypeInfo & get_type_info() const override
Definition: elu.hpp:36
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:70
Elu(const Output< Node > &data, const double alpha)
Constructs an Elu operation.
Exponential Linear Unit x < 0 => f(x) = alpha * (exp(x) - 1.) x >= 0 => f(x) = x.
Definition: elu.hpp:33
Root of all actual ops.
Definition: op.hpp:29