-
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
Add linalg pinv api #35804
Add linalg pinv api #35804
Conversation
Thanks for your contribution! |
python/paddle/tensor/linalg.py
Outdated
import paddle | ||
import numpy as np | ||
|
||
x = np.arange(15).reshape((3, 5)).astype('float64') |
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.arange
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
f7e6ad1
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
* add pinv api, test=develop * add linalg pinv api, test=develop * update example code, test=develop
PR types
New features
PR changes
OPs
Describe
add
paddle.linalg.pinv()
API, support CPU and GPU.