Public Member Functions | Static Public Attributes
ngraph::op::v0::Clamp Class Reference

Performs a clipping operation on all elements of the input node. More...

#include <clamp.hpp>

Inheritance diagram for ngraph::op::v0::Clamp:
Inheritance graph
[legend]
Collaboration diagram for ngraph::op::v0::Clamp:
Collaboration graph
[legend]

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}
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Clamp()

ngraph::op::v0::Clamp::Clamp ( const Output< Node > &  data,
const double  min,
const double  max 
)

Constructs a Clamp node.

Parameters
data- Node producing the input tensor
min- the lower bound of the <min;max> range
max- the upper bound of the <min;max> range

The documentation for this class was generated from the following file: