Performs a clipping operation on all elements of the input node. More...
#include <clamp.hpp>
Public Member Functions | |
const NodeTypeInfo & | get_type_info () const override |
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 |
Static Public Attributes | |
static constexpr NodeTypeInfo | type_info {"Clamp", 0} |
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.
ngraph::op::v0::Clamp::Clamp | ( | const Output< Node > & | data, |
const double | min, | ||
const double | max | ||
) |