Class Clip

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class Clip : public mindspore::ops::BaseOperator

Clip defined Clip operator prototype.

Public Functions

inline Clip()

Constructor.

void Init(const float max, const float min)

Method to init the op’s attributes.

Parameters
  • max[in] Define the upper bound. If value is larger than the upper bound, it will be set as this upper bound.

  • min[in] Define the lower bound. If value is less than the lower bound, it will be set as this lower bound.

void set_max(const float max)

Method to set max attribute.

Parameters

max[in] Define the upper bound. If value is larger than the upper bound, it will be set as this upper bound.

void set_min(const float min)

Method to set min attribute.

Parameters

min[in] Define the lower bound. If value is less than the lower bound, it will be set as this lower bound.

float get_max() const

Method to get max attribute.

Returns

a value to indicate upper bound.

float get_min() const

Method to get min attribute.

Returns

a value to indicate lower bound.