-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[topi][relay] Add operation scatter_add to relay, based on scatter implementation. #6030
Conversation
indices_np = np.random.randint(-dshape[axis], dshape[axis] - 1, ishape).astype("int64") | ||
|
||
ref_res = ref_scatter_add(data_np, indices_np, updates_np, axis) | ||
# TODO(mbrookhart): expand testing when adding more backend schedules |
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.
Any chance you got it to work on cuda? I haven't gotten back to this TODO yet :)
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.
Hi! Unfortunately, no! For the moment, I just need it on CPU ^^ !
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.
LGTM
I got an unexpected error in jenkins:
It seems to come from Rust tests. I don't know why. I just rebased the branch to relaunch tests again. |
All tests passed, this time ! |
Thanks @notoraptor , @mbrookhart ! |
Hi! This is a pull request to add operation
scatter_add
in relay. Code is based on implementation ofscatter
previously added by @mbrookhart .