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

solve #21319

Closed
4 tasks
dhanush-2501 opened this issue Aug 5, 2023 · 8 comments · Fixed by #23027
Closed
4 tasks

solve #21319

dhanush-2501 opened this issue Aug 5, 2023 · 8 comments · Fixed by #23027
Assignees
Labels
Bug Report Report bugs detected in Ivy. Sub Task a sub task which is stemming from a ToDo list issue

Comments

@dhanush-2501
Copy link
Contributor

dhanush-2501 commented Aug 5, 2023

Bug Explanation

The paddle.linalg.solve tests are failing. The tests and the front-end function are not implemented properly.
The test should generate two matrices of shape [ *, M, M ] and [ *, M, K ] but the written test just generates two matrices of the same shape, and function arguments are mismatched returning
TypeError: solve() got an unexpected keyword argument 'x'

Steps to Reproduce Bug

Run : pytest ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_linalg.py::test_paddle_solve

Environment

MacOs : 13.5

Ivy Version

0.0.0.0.0

Backend

  • NumPy
  • TensorFlow
  • PyTorch
  • JAX

Device

Mac M1

@dhanush-2501 dhanush-2501 added the Bug Report Report bugs detected in Ivy. label Aug 5, 2023
@dhanush-2501
Copy link
Contributor Author

@satakshigarg I have found the fix as well

@satakshigarg
Copy link
Contributor

Thank you @dhanush-2501 for sharing the bug. Could you please share the high level overview of the fix, so that I can get a better idea about it ?

@dhanush-2501
Copy link
Contributor Author

@satakshigarg it's very simple. We need to generate two different arrays of shape [,M,M] and [, M, k] and have to pass it. The current approach just generates two arrays of the same shape that's the cause of the error.

@ReneFabricius ReneFabricius changed the title [Bug]: paddle.linalg.solve tests failing, front end not implemented properly solve Aug 31, 2023
@ReneFabricius ReneFabricius added Sub Task a sub task which is stemming from a ToDo list issue and removed Bug Report Report bugs detected in Ivy. labels Aug 31, 2023
@ReneFabricius
Copy link
Contributor

ReneFabricius commented Aug 31, 2023

Hi @dhanush-2501 , you are right, both the test and implementation have some bugs in them. I have reopened the ToDo list item and assigned this issue to it. You can work on it if you want. Please be careful when implementing the test so that you generate only valid equation systems. You can get some inspiration in the analogous tests in other frameworks. You may also find some useful helper functions in ivy_tests/test_ivy/helpers/hypothesis_helpers/array_helpers.py.

Thank you for your interest in Ivy and sorry for the late reply :)

@ivy-leaves
Copy link

This issue is being closed as the function implementation is already present.
Thanks for contributing so far.
Feel free to look at other issues if you want to contribute further ✌️

@sachelsout
Copy link
Contributor

Hello @ReneFabricius , could you please reopen this issue named 'solve'. This issue is seen as completed (ivy-leaves tagged it as completed and closed) but when I checked the code (function, relevant tests), and ran the tests, the tests still fails. The code is not updated as per the above discussion thread.

Thank you.

@satakshigarg satakshigarg reopened this Sep 2, 2023
@satakshigarg
Copy link
Contributor

Thanks @dhanush-2501 for mentioning the failing tests 😃
Feel free to ping us when you feel it's ready.
Thank you !!

@dhanush-2501
Copy link
Contributor Author

@satakshigarg @ReneFabricius I Fixed it. pls review it and provide feedback

@p3jitnath p3jitnath added the Bug Report Report bugs detected in Ivy. label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Report bugs detected in Ivy. Sub Task a sub task which is stemming from a ToDo list issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants