mindspore_gs.ptq.PrecisionRecovery ============================================================ .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://atomgit.com/mindspore/golden-stick/blob/master/docs/api/api_zh_cn/ptq/mindspore_gs.ptq.PrecisionRecovery.rst :alt: 查看源文件 .. py:class:: mindspore_gs.ptq.PrecisionRecovery PTQ量化算法的精度补偿枚举类。 - ``GPTQ`` : 使用GPTQ算法做精度补偿。 - ``NONE`` : 不做精度补偿。 .. py:method:: from_str(name) :classmethod: 将 `name` 转换成精度补偿算法类型。 参数: - **name** (str) - 精度补偿算法的字符串名。