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

【Hackathon 5th No.26】为 Paddle 新增 diagonal_scatter API #6289

Merged
merged 9 commits into from
Nov 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
DanGuge committed Nov 6, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 075b9726a1952d3ccd3e69e2aeca223f37f5db34
2 changes: 1 addition & 1 deletion docs/api/paddle/Tensor_cn.rst
Original file line number Diff line number Diff line change
@@ -3067,4 +3067,4 @@ diagonal_scatter(x, y, offset=0, axis1=0, axis2=1, name=None)

返回:张量 y 填充到张量 x 中的结果。

返回类型:Tensor
返回类型:Tensor
10 changes: 5 additions & 5 deletions docs/api/paddle/diagonal_scatter_cn.rst
Original file line number Diff line number Diff line change
@@ -19,11 +19,11 @@ digagonal_scatter
参数
::::::::::::

- **x** (Tensor) - 输入张量,张量的维度至少为2维,支持float16、float32、float64、bfloat16、uint8、int8、int32、int64、bool、complex64、complex128数据类型
- **y** (Tensor) - 嵌入张量,将会被嵌入到输入张量中,支持float16、float32、float64、bfloat16、uint8、int8、int32、int64、bool、complex64、complex128数据类型
- **offset** (int, optional) - 偏移的对角线,默认值为0
- **axis1** (int, optional) - 对角线的第一个维度,默认值为0
- **axis2** (int, optional) - 对角线的第二个维度,默认值为1
- **x** (Tensor) - 输入张量,张量的维度至少为 2 维,支持 float16、float32、float64、bfloat16、uint8、int8、int32、int64、bool、complex64、complex128 数据类型
- **y** (Tensor) - 嵌入张量,将会被嵌入到输入张量中,支持 float16、float32、float64、bfloat16、uint8、int8、int32、int64、bool、complex64、complex128 数据类型
- **offset** (int, optional) - 偏移的对角线,默认值为 0
- **axis1** (int, optional) - 对角线的第一个维度,默认值为 0
- **axis2** (int, optional) - 对角线的第二个维度,默认值为 1
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回