Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docathon][Add CN Doc No.47] #6421

Closed
wants to merge 16 commits into from
Closed

[Docathon][Add CN Doc No.47] #6421

wants to merge 16 commits into from

Conversation

jiangziyan-693
Copy link

PR tpyes

Others

PR changes

Docs

Description

中文文档添加任务
#6410
新增中文文档
ptq_cn.rst

序号 API名称 英文文档地址
48 Paddle.quantization.PTQ https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/quantization/PTQ_en.html

@haoyuying @sunzhongkai588

Copy link

paddle-bot bot commented Dec 22, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6421.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
参数
:::::::::
- **model**(Layer) - 待量化的模型。
- **model**(Layer) - 是否对模型进行原地修改
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2个model参数?是不是写错了

docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/quantization/ptq_cn.rst Outdated Show resolved Hide resolved
jiangziyan-693 and others added 10 commits January 3, 2024 11:18
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
@jiangziyan-693 jiangziyan-693 closed this by deleting the head repository Jan 17, 2024
PTQ
-------------------------------
.. py:class:: paddle.quantization.PTQ(Quantization)
将训练后量化应用到模型上。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文档内容不正确。


为训练后量化准备好的模型。

**代码示例**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

示例不正确

convert(self, model:layer, inplace=False, remain_weight=False):
'''''''''

将量化模型转换为ONNX格式。转换后的模型可以通过调用 paddle.jit.save 保存为推理模型。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文档不正确,并不是转换乘ONNX 格式。


转换后的模型

**代码示例**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

示例不正确


- **model**(Layer) - 待量化的模型。
- **inplace**(bool, optional) - 是否要对模型进行就地修改,默认为false。
- **remain_weight**(bool, optional) - 是否宝石权重为floats,默认为false。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有错别字

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants