19 #include "ngraph/node.hpp"
20 #include "ngraph/op/op.hpp"
21 #include "ngraph/op/util/fused_op.hpp"
23 NGRAPH_SUPPRESS_DEPRECATED_START
36 class NGRAPH_API
Clamp :
public ngraph::op::util::FusedOp
39 NGRAPH_RTTI_DECLARATION;
49 void pre_validate_and_infer_types()
override;
51 virtual OutputVector decompose_op()
const override;
53 virtual std::shared_ptr<Node>
54 clone_with_new_inputs(
const OutputVector& new_args)
const override;
58 double get_min()
const {
return m_min; }
59 double get_max()
const {
return m_max; }
60 bool evaluate(
const HostTensorVector& outputs,
61 const HostTensorVector& inputs)
const override;
72 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
Performs a clipping operation on all elements of the input node.
Definition: clamp.hpp:37
Clamp(const Output< Node > &data, const double min, const double max)
Constructs a Clamp node.
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28