ivy
ivy copied to clipboard
ndarray.max
Close #5641
Hi @ankitdsi2010 I kindly request you to review the PR.
Additionally, can you please clarify a doubt?
ndarray.max has a parameter
initial
. I am unsure how <no value>
can be implemented here. In the current PR I have not included this parameter. But if I have to implement it, can I use numpys np._NoValue
object?
Yeah you can use the numpy NoValue object and see if it works
Hi @geeythree :) I'll be reviewing this PR moving forward. Could you ping me when you're done with changes, or simply want a review?
@modanesh Thanks for letting me know! :) I'm having some trouble figuring out how to write test for the function that I implemented
Here we describe in detail how tests work and how to write one: https://lets-unify.ai/ivy/deep_dive/ivy_tests.html I highly recommend take a look at it. Don't hesitate to ask any questions :)
This PR has been labelled as stale because it has been inactive for more than 7 days. If you would like to continue working on this PR, then please add another comment or this PR will be closed in 7 days.
I'm still working on this PR.
@modanesh I see that two methods for max() had been implemented in the frontend file (one which I had written and another which I wasn't aware of), and a test function has already been implemented. Can you please tell me what needs to be done now?
Could you point out to where those implementations are?
ivy/ivy/functional/frontends/numpy/ndarray/ndarray.py
at line 65 already contains an implementation of max(). I am not sure if this happened when I accidentally force pushed my commits onto the ivy repo or if somebody else had written it.
ivy/ivy_tests/test_ivy/test_frontends/test_numpy/test_ndarray/test_ndarray.py
at line 495 already has test implemented for max() which was not written by me.
I will look into it and will let you know.
I'm going to close this PR as the function is already implemented. This shouldn't have happened since we have a clear protocol on how to reserve a subtask and work on it, so this is an error on our end. Since @geeythree started working on it, you may proceed to the next stage of the application process :)
Thank you for the clarification, @modanesh! Just for confirmation, is it ok if I work on another subtask?
Of course it's fine. We would appreciate your contribution 🙂