-
Notifications
You must be signed in to change notification settings - Fork 764
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6421.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
参数 | ||
::::::::: | ||
- **model**(Layer) - 待量化的模型。 | ||
- **model**(Layer) - 是否对模型进行原地修改 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2个model参数?是不是写错了
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>
PTQ | ||
------------------------------- | ||
.. py:class:: paddle.quantization.PTQ(Quantization) | ||
将训练后量化应用到模型上。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档内容不正确。
|
||
为训练后量化准备好的模型。 | ||
|
||
**代码示例** |
There was a problem hiding this comment.
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 保存为推理模型。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档不正确,并不是转换乘ONNX 格式。
|
||
转换后的模型 | ||
|
||
**代码示例** |
There was a problem hiding this comment.
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。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有错别字
PR tpyes
Others
PR changes
Docs
Description
中文文档添加任务
#6410
新增中文文档
ptq_cn.rst
@haoyuying @sunzhongkai588