[Docathon][Add CN Doc No.47]#6421
Closed
jiangziyan-693 wants to merge 16 commits intoPaddlePaddle:developfrom
jiangziyan-693:stuff-ptq
Closed
[Docathon][Add CN Doc No.47]#6421jiangziyan-693 wants to merge 16 commits intoPaddlePaddle:developfrom jiangziyan-693:stuff-ptq
jiangziyan-693 wants to merge 16 commits intoPaddlePaddle:developfrom
jiangziyan-693:stuff-ptq
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6421.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
| 参数 | ||
| ::::::::: | ||
| - **model**(Layer) - 待量化的模型。 | ||
| - **model**(Layer) - 是否对模型进行原地修改 |
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) | ||
| 将训练后量化应用到模型上。 |
|
|
||
| 为训练后量化准备好的模型。 | ||
|
|
||
| **代码示例** |
| convert(self, model:layer, inplace=False, remain_weight=False): | ||
| ''''''''' | ||
|
|
||
| 将量化模型转换为ONNX格式。转换后的模型可以通过调用 paddle.jit.save 保存为推理模型。 |
Collaborator
There was a problem hiding this comment.
文档不正确,并不是转换乘ONNX 格式。
|
|
||
| 转换后的模型 | ||
|
|
||
| **代码示例** |
|
|
||
| - **model**(Layer) - 待量化的模型。 | ||
| - **inplace**(bool, optional) - 是否要对模型进行就地修改,默认为false。 | ||
| - **remain_weight**(bool, optional) - 是否宝石权重为floats,默认为false。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR tpyes
Others
PR changes
Docs
Description
中文文档添加任务
#6410
新增中文文档
ptq_cn.rst
@haoyuying @sunzhongkai588