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.

参数
  • 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.

参数

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.

参数

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.

返回

a value to indicate upper bound.

float get_min() const

Method to get min attribute.

返回

a value to indicate lower bound.