Skip to content

Add linalg pinv api#35804

Merged
qingqing01 merged 4 commits intoPaddlePaddle:developfrom
andyjiang1116:add_pinv_op
Sep 17, 2021
Merged

Add linalg pinv api#35804
qingqing01 merged 4 commits intoPaddlePaddle:developfrom
andyjiang1116:add_pinv_op

Conversation

@andyjiang1116
Copy link
Contributor

PR types

New features

PR changes

OPs

Describe

add paddle.linalg.pinv() API, support CPU and GPU.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

MissPenguin
MissPenguin previously approved these changes Sep 17, 2021
import paddle
import numpy as np

x = np.arange(15).reshape((3, 5)).astype('float64')
Copy link
Contributor

Choose a reason for hiding this comment

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

示例输入构造,可以直接用paddle.arange

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,我改一下,谢谢~

jzhang533
jzhang533 previously approved these changes Sep 17, 2021
Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

LGTM

@andyjiang1116 andyjiang1116 dismissed stale reviews from jzhang533 and MissPenguin via f7e6ad1 September 17, 2021 03:23
Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

LGTM

@qingqing01 qingqing01 merged commit 71e01d3 into PaddlePaddle:develop Sep 17, 2021
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* add pinv api, test=develop
* add linalg pinv api, test=develop
* update example code, test=develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants