-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【SCU】【Paddle Tensor No.24】新增 paddle.matrix_transpose
, paddle.linalg.matrix_transpose
,复用已有接口 paddle.transpose
#69301
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
感谢提交PR,docstring可以修改一下
python/paddle/tensor/linalg.py
Outdated
>>> 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) |
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.
此处应该展示动态图的样例代码,而不是静态图的吧?
paddle.matrix_transpose
, paddle.linalg.matrix_transpose
,复用已有接口 paddle.transpose
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.
新增的接口 |
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
好的好的~ |
@PolaKuma 还麻烦在 |
PR Category
User Experience
PR Types
New features
Description
Paddle Tensor 规范化:新增
paddle.matrix_transpose
,paddle.linalg.matrix_transpose
,复用已有接口paddle.transpose