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.26] #6390

Closed
wants to merge 12 commits into from
Closed

[Docathon][Add CN Doc No.26] #6390

wants to merge 12 commits into from

Conversation

Kaedeharai
Copy link
Contributor

PR types

Others

PR changes

Docs

Description

补充缺失的中文api文档 :
#6193

添加中文文档:
paddle.nn.functional.scaled_dot_product_attention

英文文档链接:https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/nn/functional/scaled_dot_product_attention_en.html

@sunzhongkai588 @liuzhenhai93

Copy link

paddle-bot bot commented Dec 12, 2023

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

Copy link

@liuzhenhai93 liuzhenhai93 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

渲染有些错,详细看 预览

其实英文文档也有一处错误,之后有空再改吧
image

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
sunzhongkai588

This comment was marked as abuse.

::::::::::

- ``out`` (Tensor): 形状为 ``[batch_size, seq_len, num_heads, head_dim]`` 的 4 维张量。数据类型可以是 float16 或 bfloat16。
- ``softmax`` (Tensor): 如果 return_softmax 为 False,则为 None。
Copy link
Collaborator

Choose a reason for hiding this comment

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

该API并没有return_softmax参数,也没有返回softmax

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Kaedeharai Kaedeharai closed this Jan 18, 2024
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.

5 participants