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.4-5] #6362

Merged
merged 9 commits into from
Dec 21, 2023
Merged

Conversation

zade23
Copy link
Contributor

@zade23 zade23 commented Dec 7, 2023

PR types

Others

PR changes

Docs

Description

中文文档添加任务

#6193

新增中文文档:

  • paddle.incubate.nn.functional.fused_matmul_bias
  • paddle.incubate.nn.FusedLinear

英文文档链接:

序号 API名称 英文文档地址
4 paddle.incubate.nn.functional.fused_matmul_bias https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/incubate/nn/functional/fused_matmul_bias_en.html
5 paddle.incubate.nn.FusedLinear https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/incubate/nn/FusedLinear_en.html

@sneaxiy @sunzhongkai588

Copy link

paddle-bot bot commented Dec 7, 2023

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

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
@@ -0,0 +1,45 @@
.. _cn_api_paddle_incubate_nn_FusedLinear:
Copy link
Collaborator

Choose a reason for hiding this comment

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

请直接参考https://github.com/PaddlePaddle/docs/blob/develop/docs/api/paddle/nn/Linear_cn.rst 书写,内容里还有不少可以改进的地方。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

请直接参考https://github.com/PaddlePaddle/docs/blob/develop/docs/api/paddle/nn/Linear_cn.rst 书写,内容里还有不少可以改进的地方。

已修改。参考 Linear_cn.rst 的内容和格式。


.. py:class:: paddle.incubate.nn.FusedLinear(in_features, out_features, weight_attr=None, bias_attr=None, transpose_weight=False, name=None)

Linear 层只接受一个 Tensor 作为输入,形状为 :math:`[batch\_size, *, in\_features]`,其中 :math:`*` 表示可以为任意个额外的维度。
Copy link
Collaborator

Choose a reason for hiding this comment

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

Linear改成FusedLinear

另外,此方法也需要要求CUDA 11.6及以上,需要写上此约束条件。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Down

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 2854d27 into PaddlePaddle:develop Dec 21, 2023
2 checks passed
@zade23 zade23 deleted the den_doc_45 branch December 21, 2023 06:12
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