-
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
Added floor function to numpy frontend #12948
Conversation
Close #12948 |
@hirwa-nshuti Created the new PR and added the floor function, please review it. |
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.
Hey @RakshitKumar04
Thanks for contributing to ivy😊
Here are general comments for this implementation:
-
You need to import this private function in the init file of the numpy frontend: https://github.com/unifyai/ivy/blob/6c29acd94482e341148a629df523cf966d02aa4b/ivy/functional/frontends/numpy/__init__.py#L518
-
You'll need to initialize ufunc object here in the same init file: https://github.com/unifyai/ivy/blob/6c29acd94482e341148a629df523cf966d02aa4b/ivy/functional/frontends/numpy/__init__.py#L676
You'll then fix the test issues refer to the comments below
Thanks
ivy_tests/test_ivy/test_frontends/test_numpy/test_mathematical_functions/test_rounding.py
Outdated
Show resolved
Hide resolved
Hey, @hirwa-nshuti fixed the testing issues, please review. |
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.
Hey @RakshitKumar04
The tests are failing due to wrong implementation of the unit test 🙂
Would you follow the unit test of ceil
function above to understand anover view as the tests will be somehow alike😊
Thanks
5523002
to
eb3adbd
Compare
Hey, did the changes you suggested, Please review |
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.
Looks good!
Going to merge
Thanks for contributing😊
Thank you @hirwa-nshuti for helping me contribute to ivy. |
Close #12948