Design
Models
API
API Mapping
Migration Guide
Syntax Support
Environment Variables
FAQ
RELEASE NOTES
An enum for quant datatype, contains INT1 ~ INT16, UINT1 ~ UINT16.
QuantDtype is defined in dtype.py, use command below to import:
from mindspore import QuantDtype
Quantization algorithm in Golden Stick
Return value of QuantDtype. This interface is currently used to serialize or deserialize QuantDtype primarily.
An int as value of QuantDtype.
Examples
>>> from mindspore import QuantDtype >>> print(QuantDtype.INT8.value()) 7 >>> print(QuantDtype.UINT16.value()) 115