-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Comments
@satakshigarg I have found the fix as well |
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 ? |
@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. |
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 :) |
This issue is being closed as the function implementation is already present. |
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. |
Thanks @dhanush-2501 for mentioning the failing tests 😃 |
@satakshigarg @ReneFabricius I Fixed it. pls review it and provide feedback |
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
Device
Mac M1
The text was updated successfully, but these errors were encountered: