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.64-67] #6224

Merged
merged 9 commits into from
Oct 18, 2023

Conversation

@paddle-bot
Copy link

paddle-bot bot commented Oct 10, 2023

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

参数
:::::::::
- **name** (string|Layer) - 需要支持的 layer 的名称或类型。 如果 layer 是 Layer,那么它将在内部转为字符串。ASP 将使用这个名称来匹配参数的名称并调用其相应的剪枝函数。
- **pruning_func** (function,可选) - 一个接收五个参数(weight_nparray、m、n、func_name、param_name)的函数类型,weight_nparray 是 nparray 格式的权重,param_name 是权重的名称,m、n 和 func_name,详细信息请参见 :ref:`cn_api_paddle_incubate_asp_prune_model`。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- **pruning_func** (function,可选) - 一个接收五个参数(weight_nparray、m、n、func_name、param_name)的函数类型,weight_nparray 是 nparray 格式的权重,param_name 是权重的名称,m、n func_name,详细信息请参见 :ref:`cn_api_paddle_incubate_asp_prune_model`。
- **pruning_func** (function,可选) - 一个接收五个参数(weight_nparray、m、n、func_name、param_name)的函数类型,weight_nparray 是 nparray 格式的权重,param_name 是 weight、m、n func_name 的名称,详细信息请参见 :ref:`cn_api_paddle_incubate_asp_prune_model`。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

图片
这个看着似乎 param_name 仅仅是 weight 的名称

docs/api/paddle/incubate/asp/reset_excluded_layers_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/incubate/asp/reset_excluded_layers_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/incubate/asp/set_excluded_layers_cn.rst Outdated Show resolved Hide resolved
@sunzhongkai588 sunzhongkai588 added the HappyOpenSource 快乐开源活动issue与PR label Oct 11, 2023
ooooo-create and others added 3 commits October 11, 2023 12:23
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>
@sunzhongkai588
Copy link
Collaborator

@SigureMo 一师傅看看..为啥 copy-from 都不成功。

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 060eaf4 into PaddlePaddle:develop Oct 18, 2023
3 checks passed
@sunzhongkai588 sunzhongkai588 changed the title [Docathon] Add NO.64-67 API CN Doc [Docathon][Add CN Doc No.64-67] Nov 17, 2023
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.

3 participants