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

sinc backend implementation #4462

Merged
merged 20 commits into from
Sep 30, 2022
Merged

sinc backend implementation #4462

merged 20 commits into from
Sep 30, 2022

Conversation

pj-mathematician
Copy link
Contributor

I am facing some issues with type casting, I added some explicit wrappers to ensure that the returned dtype is the same as that of the input dtype

This PR is a reference to the previous PR #4436 .

Issue is #3856

@ivy-leaves ivy-leaves added Array API Conform to the Array API Standard, created by The Consortium for Python Data API Standards Function Reformatting Reformat all Ivy functions in accordance with the latest coding style in the contributor guide labels Sep 15, 2022
@pj-mathematician
Copy link
Contributor Author

Hey, can I get a review? I have added all the relevant functions in the backend and it seems that they are passing the tests too. The failed checks are not in the scope of my code, thanks!

@johanjino
Copy link
Contributor

@pj-mathematician Thanks for the contribution, and the work you've done seems amazing. Since there's various backends and tests, I'll keep checking them through.

In the meanwhile, it would great if you could add the docstrings for the functions as well since making it a different ToDo task increases the workflow. Moreover, since you have implemented them, you may be in good position to do this as well 😀.

@pj-mathematician
Copy link
Contributor Author

Thanks!! I will add them right away!

@pj-mathematician
Copy link
Contributor Author

@pj-mathematician Thanks for the contribution, and the work you've done seems amazing. Since there's various backends and tests, I'll keep checking them through.

In the meanwhile, it would great if you could add the docstrings for the functions as well since making it a different ToDo task increases the workflow. Moreover, since you have implemented them, you may be in good position to do this as well 😀.

Added for ivy/array , ivy/container and ivy functional , with appropriate docs. Since sinc wasnt available on Python array API standard , I have added the mathematical constraints and special cases myself using the similar format. Let me know if there are any changes regarding this too! 🙌

@pj-mathematician pj-mathematician mentioned this pull request Sep 22, 2022
@pj-mathematician
Copy link
Contributor Author

#4815 mentioning the issue to keep track

@johanjino johanjino linked an issue Sep 26, 2022 that may be closed by this pull request
@johanjino
Copy link
Contributor

Hey @pj-mathematician , Im sorry this slipped my radar initially. Everything you have done is perfect. But since we are looking forward to a next stable release, we would like all the extension functions written in the extensions.py files so that they and built and then segregated until they are stable.
I would be great if you could just change the file under which the codes exist. I have made extenstions.py files wherever necessary🙂. I apologize for all the hassle.

@pj-mathematician
Copy link
Contributor Author

Hey! Thanks alot for your update, I will update accordingly and commit asap 😁

@pj-mathematician
Copy link
Contributor Author

pj-mathematician commented Sep 26, 2022

@johanjino This is what i have understood after going through the extensions.py files:
I have to update the functional/backends/*/extensions.py and functional/ivy/extensions.py by adding the same code with relevant imports, and keeping the core files ( functional/backends/*/elementwise.py) clean without adding the sinc function. Do I have to change the tests in any way?

@pj-mathematician
Copy link
Contributor Author

8d4d25c :

we would like all the extension functions written in the extensions.py files so that they and built and then segregated until they are stable.

Done 🙌🏻 and the elementwise files have been reverted back. Tested extensions.py locally and its passing for sinc 🙂

@johanjino
Copy link
Contributor

Hey @pj-mathematician , thanks for your contribution. This work is great!.

@johanjino johanjino merged commit 1fac895 into ivy-llc:master Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Array API Conform to the Array API Standard, created by The Consortium for Python Data API Standards Function Reformatting Reformat all Ivy functions in accordance with the latest coding style in the contributor guide Ivy Functional API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sinc
4 participants