-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add gather_backward op #363
base: master
Are you sure you want to change the base?
Conversation
@@ -258,3 +260,8 @@ def gather(inp, dim, index, out=None, sparse_grad=False): | |||
|
|||
_gather_func(inp_strided, out, index, dim, stride_dim, M, N) | |||
return out | |||
|
|||
|
|||
def gather_backward(grad, self, dim, index, sparse_grad): |
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.
Please add log here and check whether the relevant code is executed when running the unit test, because the coverage CI does not pass
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.
Thanks, I added the log.
It seems that the speedup ratio is not very ideal |
I did some profiling work and found some code that can be optimized. I will do some tests locally first. |
i modify gather backwar:
perf in A100 before
after:
|
PR Category
Type of Change
Description
Issue
Closes #317
Progress
Performance