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

【SCU】【Paddle Tensor No.24】新增 paddle.matrix_transpose, paddle.linalg.matrix_transpose,复用已有接口 paddle.transpose #69301

Merged
merged 14 commits into from
Nov 14, 2024

Conversation

PolaKuma
Copy link
Contributor

PR Category

User Experience

PR Types

New features

Description

Paddle Tensor 规范化:新增 paddle.matrix_transpose, paddle.linalg.matrix_transpose,复用已有接口 paddle.transpose

Copy link

paddle-bot bot commented Nov 11, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 11, 2024
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

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

感谢提交PR,docstring可以修改一下

Comment on lines 206 to 213
>>> paddle.enable_static()

>>> x = paddle.ones(shape=[2, 3, 5])
>>> x_transposed = paddle.matrix_transpose(x)

>>> exe = paddle.static.Executor()
>>> x_transposed_np = exe.run(paddle.static.default_main_program(), fetch_list=[x_transposed])[0]
>>> print(x_transposed_np.shape)
Copy link
Contributor

Choose a reason for hiding this comment

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

此处应该展示动态图的样例代码,而不是静态图的吧?

@HydrogenSulfate HydrogenSulfate changed the title 【SCU】【Paddle Tensor No.24】新增 paddle.matrix_transpose, paddle.linalg.matrix_transpose,复用已有接口 paddle.transpose 【SCU】【Paddle Tensor No.24】新增 paddle.matrix_transpose, paddle.linalg.matrix_transpose,复用已有接口 paddle.transpose Nov 12, 2024
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Nov 13, 2024
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate 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
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾

@HydrogenSulfate
Copy link
Contributor

新增的接口paddle.linalg.matrix_transpose麻烦在中文API文档(https://github.com/PaddlePaddle/docs)中也同步添加一下对应的文档信息,感谢~

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 3a0466d into PaddlePaddle:develop Nov 14, 2024
28 checks passed
@PolaKuma
Copy link
Contributor Author

新增的接口paddle.linalg.matrix_transpose麻烦在中文API文档(https://github.com/PaddlePaddle/docs)中也同步添加一下对应的文档信息,感谢~

好的好的~

@HydrogenSulfate
Copy link
Contributor

HydrogenSulfate commented Nov 28, 2024

@PolaKuma 还麻烦在Paddle/python/paddle/tensor/__init__.py里补充一下matrix_transpose相关代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants