-
Notifications
You must be signed in to change notification settings - Fork 750
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6390.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
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.
LGTM
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.
渲染有些错,详细看 预览
docs/api/paddle/nn/functional/scaled_dot_product_attention_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/nn/functional/scaled_dot_product_attention_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/nn/functional/scaled_dot_product_attention_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/nn/functional/scaled_dot_product_attention_cn.rst
Outdated
Show resolved
Hide resolved
docs/api/paddle/nn/functional/scaled_dot_product_attention_cn.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
:::::::::: | ||
|
||
- ``out`` (Tensor): 形状为 ``[batch_size, seq_len, num_heads, head_dim]`` 的 4 维张量。数据类型可以是 float16 或 bfloat16。 | ||
- ``softmax`` (Tensor): 如果 return_softmax 为 False,则为 None。 |
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.
该API并没有return_softmax
参数,也没有返回softmax
。
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.
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
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