-
Notifications
You must be signed in to change notification settings - Fork 79
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
Adding python-only implementation of gradient + test #1136
Conversation
d05be08
to
faf4f81
Compare
421acef
to
4e24ced
Compare
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.
Some minor comments. I didn't go through the math in detail.
cunumeric/module.py
Outdated
# if distances are constant reduce to the scalar case | ||
# since it brings a consistent speedup | ||
if (diffx == diffx[0]).all(): | ||
diffx = diffx[0] |
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.
Let's remove this "optimization". It causes blocking in cuNumeric, and if the user wanted constant spacing they should have just provided a constant here.
No description provided.