Class DynamicQuant
Defined in File dynamic_quant.h
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.
- 参数
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.
- 参数
symmetric – [in] Define whether symmetric quantization.
-
bool get_symmetric() const
Method to get symmetric attribute.
- 返回
Whether symmetric quantization.
-
void set_dst_type(const int64_t dst_type)
Method to set dst_type attribute.
- 参数
dst_type – [in] Define the data type of output.
-
int64_t get_dst_type() const
Method to get dst_type attribute.
- 返回
the data type of output.
-
inline DynamicQuant()