Performs a clipping operation on all elements of the input node. More...
#include <clamp.hpp>
Public Member Functions | |
Clamp (const Output< Node > &data, const double min, const double max) | |
Constructs a Clamp node. More... | |
void | pre_validate_and_infer_types () override |
virtual OutputVector | decompose_op () const override |
virtual std::shared_ptr< Node > | clone_with_new_inputs (const OutputVector &new_args) const override |
bool | visit_attributes (AttributeVisitor &visitor) override |
double | get_min () const |
double | get_max () const |
bool | evaluate (const HostTensorVector &outputs, const HostTensorVector &inputs) const override |
Data Fields | |
NGRAPH_RTTI_DECLARATION | |
Performs a clipping operation on all elements of the input node.
All input values that are outside of the <min;max> range are set to 'min' or 'max' depending on which side of the <min;max> range they are. The values that fall into this range remain unchanged.