Class DynamicQuant

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class DynamicQuant : public mindspore::ops::BaseOperator

the DynamicQuant operator prototype.

Public Functions

inline DynamicQuant()

Constructor.

void Init(const bool symmetric, const int64_t dst_type)

Method to init the op’s attributes.

Parameters
  • symmetric[in] Define whether symmetric quantization.

  • dst_type[in] Define the data type of output.

void set_symmetric(const bool symmetric)

Method to set symmetric attribute.

Parameters

symmetric[in] Define whether symmetric quantization.

bool get_symmetric() const

Method to get symmetric attribute.

Returns

Whether symmetric quantization.

void set_dst_type(const int64_t dst_type)

Method to set dst_type attribute.

Parameters

dst_t[in] Define the data type of output.

int64_t get_dst_type() const

Method to get dst_type attribute.

Returns

the data type of output.