mindspore.QuantDtype ==================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/mindspore/mindspore.QuantDtype.rst :alt: 查看源文件 .. py:class:: mindspore.QuantDtype MindSpore量化数据类型枚举类,包含 `INT1` ~ `INT16`,`UINT1` ~ `UINT16` 。 `QuantDtype` 定义在 `dtype.py `_ 文件下 。运行以下命令导入环境: .. code-block:: from mindspore import QuantDtype 教程样例: - `昇思金箍棒量化感知训练时配置算法 `_ .. py:method:: value() 获取当前 `QuantDtype` 的值。该接口当前主要用于序列化或反序列化 `QuantDtype` 。 返回: int,表示当前 `QuantDtype` 的值。