ivy icon indicating copy to clipboard operation
ivy copied to clipboard

Add argmax function to Numpy Frontend

Open garlicdevs opened this issue 3 years ago • 5 comments
trafficstars

#3470

garlicdevs avatar Aug 23 '22 10:08 garlicdevs

Hi @bicycleman15 , look like some errors do not relate to my code

garlicdevs avatar Aug 23 '22 11:08 garlicdevs

Hey @garlicdevs it's a good start. However, you still need to add tests for your frontend function. I would suggest you go through the contributor guide if you need to reference on how to implement tests for frontend functions. Feel free to message if you have any questions. 🙂

bicycleman15 avatar Aug 28 '22 19:08 bicycleman15

@bicycleman15 sure thanks mate :)

garlicdevs avatar Aug 28 '22 22:08 garlicdevs

Hi @bicycleman15 , I just added the test, can you review it please? Thanks

garlicdevs avatar Aug 30 '22 14:08 garlicdevs

Hi @bicycleman15 , I think the source code in ivy master is quite inconsistent, there should be no docstring in front-end APIs, but I saw some functions having those like argmin and nonzero.

Test strategies are also inconsistent. I just followed Daniel @djl11 test sample code to write the test function. For example, the order of variables in the "given" decorators should be consistent. Which params should be defined hypothesis strategies, etc.

garlicdevs avatar Aug 31 '22 02:08 garlicdevs

Hey @garlicdevs , you are correct. Frontend function should not have docstrings. It is also true that argument order is inconsistent. I believe since many people are contributing, sometimes these things slip by I guess.

bicycleman15 avatar Sep 18 '22 14:09 bicycleman15

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.

ivy-seed avatar Oct 13 '22 14:10 ivy-seed

This PR has been closed because it has been marked as stale for more than 7 days with no activity.

ivy-seed avatar Oct 20 '22 06:10 ivy-seed