-
Notifications
You must be signed in to change notification settings - Fork 22
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
Implement outer for element-wise functions #1813
Conversation
View rendered docs @ https://intelpython.github.io/dpnp/index.html |
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.
I have only one general comments that we missed docstring documentation for class of universal function (description of attributes like nin
and methods like outer
).
But it can be addressed by a separate PR.
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.
In general it's quite a mix of updating different functionality in one PR.
It would be much more better to split into 3 parts by affecting functionality, like updates in:
- dpnp.flatten
- ufunc.outer
- dpnp.outer
Or at least it would be very helpful to describe all the changes with more details in the PR's description.
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.
Thank you @npolina4 No more comment from me.
Adding documentation page for ufunc
should be handled by a separate PR,
* Add ufunc outer * Update dpnp.outer * Changed flatten to ravel in outer function to avoid unnecessary copy * Update flatten implementation * Update docs for outer * address comments * Update dpnp/dpnp_algo/dpnp_elementwise_common.py --------- Co-authored-by: Anton <[email protected]> d7400a2
Implemented outer for binary element-wise functions.
Updated dpnp.outer by using new ufunc outer (dpnp.multiply.outer)
Added tests for different shape and tests compare for compare with dpnp.outer.