-
Notifications
You must be signed in to change notification settings - Fork 26.3k
make dimension checker of scatter_add_ consistent with scatter_
#5659
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
Conversation
|
this only fixes dimension checking, right? (not broadcasting or support for scalar source) |
|
Yes. If we request this feature, I would like to do it. @colesbury |
zou3519
left a comment
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.
@Officium thank you for your PR! It looks good for the most part. I had one minor comment about the code duplication.
aten/src/TH/generic/THTensorMath.c
Outdated
| // Tests: | ||
| // 1. index->size[d] <= src->size[d] for all d | ||
| // 2. index->size[d] <= real->size[d] for all d != dim | ||
| #define TH_TENSOR_DIM_APPLY3_SIZE_SCATTER(TENSOR1, TENSOR2, TENSOR3, DIMENSION) \ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@zou3519 Thank you for review. I fix it. |
|
@pytorchbot test this please |
|
@pytorchbot retest this please |
|
thanks @Officium ! |
fix issue #5405