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

Paddle qr #20893

Merged
merged 18 commits into from
Sep 3, 2023
Merged

Paddle qr #20893

merged 18 commits into from
Sep 3, 2023

Conversation

jindalai
Copy link
Contributor

@jindalai jindalai commented Jul 27, 2023

Close #20785
qr frontend function and test for the paddlepaddle linear algebra module
Closes the todolist subtask #20785
(Previous PR was closed due to merge conflict)

@ivy-leaves ivy-leaves added the Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist label Jul 27, 2023
@ivy-leaves
Copy link

If you are working on an open task, please edit the PR description to link to the issue you've created.

For more information, please check ToDo List Issues Guide.

Thank you 🤗

@jindalai
Copy link
Contributor Author

Resolved merge conflicts

@ivy-leaves ivy-leaves added the PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist label Jul 31, 2023
jindalai and others added 3 commits July 31, 2023 12:56
Accidentally added histogram (separate) in this PR. Removed the same
@rishabgit
Copy link
Contributor

Hi! Thanks for working on this 😄 Could you please take care of the lint issues? Looks great otherwise!

Hope this helps - pre-commit

@jindalai
Copy link
Contributor Author

jindalai commented Aug 1, 2023

Hi @rishabgit! Thanks a lot for the review! 😄
I have fixed the formatting with pre-commit and now there are no errors.
Please let me know if something needs further work.

@jindalai jindalai deleted the branch ivy-llc:main August 3, 2023 07:00
@jindalai jindalai closed this Aug 3, 2023
@jindalai jindalai deleted the master branch August 3, 2023 07:00
@jindalai jindalai restored the master branch August 3, 2023 07:08
@jindalai jindalai reopened this Aug 3, 2023
@jindalai
Copy link
Contributor Author

jindalai commented Aug 3, 2023

Hi @rishabgit! PR was accidentally closed. I have reopened it.

Copy link
Contributor

@rishabgit rishabgit left a comment

Choose a reason for hiding this comment

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

Hey, I'm getting an odd error on local testing - ERROR ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_linalg.py - ivy.utils.exceptions.IvyAttributeError: paddle: function_supported_devices_and_dtypes: paddle: function_supported_devices_and_dtypes: 'tuple' object has no attribute 'values'

Looks like it was due to a bug on the testing pipeline which was recently fixed, could you please sync your branch with the latest updates?

@jindalai jindalai requested a review from rishabgit August 8, 2023 08:16
@jindalai
Copy link
Contributor Author

jindalai commented Aug 8, 2023

Thanks for letting me know!
I have synced the branch with the ivy/master branch.

Some tests are failing here. Please let me know of what might be causing them and the required changes in the code/test/deployment
😄

@jindalai jindalai changed the title Close #20785 Paddle qr Aug 8, 2023
Copy link
Contributor

@rishabgit rishabgit left a comment

Choose a reason for hiding this comment

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

Hi, I resolved the issue with incorrect fixtures in testing, but it throws error on qr implementation now. Could you please look into it? Thanks!

@jindalai
Copy link
Contributor Author

jindalai commented Aug 11, 2023

Thanks a lot for the changes!
Reg the implementation I cant find anything wrong as of now

I have referred the Paddle documentation and the corresponding ivy code for it.

Can you please let me know if you find something?

The qr function implementation seems to be quite simple. I have accounted for the:

  • Supported datatypes
  • Positional Args

Could this be due to some other testing/infra reason?

@rishabgit
Copy link
Contributor

Hi, your testing fn was off, fixed it now but getting AssertionError: the results from backend torch and ground truth framework paddle do not match which I'm not sure how to fix exactly

@hirwa-nshuti saw your changes here which I believe deals with similar "issue" with numpy testing?

Do you have any idea on what could be the ideal workaround here? Already set rtol=1e-01

image

@jindalai
Copy link
Contributor Author

Hello @rishabgit
How should we proceed with it?

Are there some changes I should be trying?

Copy link
Contributor

@rishabgit rishabgit left a comment

Choose a reason for hiding this comment

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

Hi! Fixed the issue with testing pipeline, could you please take care of merge conflicts? LGTM to merge otherwise. Thanks! 😄

@rishabgit
Copy link
Contributor

Needed slight updates, but LGTM otherwise! Thanks for adding this @yashj8 😄

@rishabgit rishabgit merged commit 2bdbdca into ivy-llc:main Sep 3, 2023
@jindalai
Copy link
Contributor Author

jindalai commented Sep 4, 2023

Thanks for everything @rishabgit! This was my first PR at ivy!
Sorry for the delay and mess up in the merge conflict.
Can you please shed some light on what might be going wrong initially (which you fixed with the matrix_is_stable?) Would be helpful later on.

@jindalai jindalai deleted the master branch September 4, 2023 10:35
@rishabgit
Copy link
Contributor

Thanks for everything @rishabgit! This was my first PR at ivy! Sorry for the delay and mess up in the merge conflict. Can you please shed some light on what might be going wrong initially (which you fixed with the matrix_is_stable?) Would be helpful later on.

Hey @yashj8, I'll suggest diving into the code of matrix_is_stable (especially its docstring) and googling from there if you're unclear about any key word - would explain things much better + exhaustively than I could imo 😄

druvdub pushed a commit to druvdub/ivy that referenced this pull request Oct 14, 2023
Co-authored-by: Rishab Mallick <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Paddle Frontend Developing the Paddle Frontend, checklist triggered by commenting add_frontend_checklist PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qr
3 participants