19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
21 #include "ngraph/op/util/fused_op.hpp"
23 NGRAPH_SUPPRESS_DEPRECATED_START
35 class NGRAPH_API
PRelu :
public ngraph::op::util::FusedOp
38 NGRAPH_RTTI_DECLARATION;
47 virtual OutputVector decompose_op()
const override;
49 virtual std::shared_ptr<Node>
50 clone_with_new_inputs(
const OutputVector& new_args)
const override;
52 void pre_validate_and_infer_types()
override;
54 bool evaluate(
const HostTensorVector& outputs,
55 const HostTensorVector& inputs)
const override;
62 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
Parametrized Relu x < 0 => f(x) = x * slope x >= 0 => f(x) = x.
Definition: prelu.hpp:36
PRelu(const Output< Node > &data, const Output< Node > &slope)
Constructs a PRelu operation.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28