Skip to content

Conversation

@Officium
Copy link
Contributor

@Officium Officium commented Mar 9, 2018

fix issue #5405

@vadimkantorov
Copy link
Contributor

this only fixes dimension checking, right? (not broadcasting or support for scalar source)

@Officium
Copy link
Contributor Author

Yes. If we request this feature, I would like to do it. @colesbury

Copy link
Contributor

@zou3519 zou3519 left a 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.

// 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.

@Officium
Copy link
Contributor Author

Officium commented Mar 13, 2018

@zou3519 Thank you for review. I fix it.

@Officium
Copy link
Contributor Author

Officium commented Mar 13, 2018

@pytorchbot test this please

@soumith
Copy link
Contributor

soumith commented Mar 13, 2018

@pytorchbot retest this please

@soumith soumith merged commit f377159 into pytorch:master Mar 13, 2018
@soumith
Copy link
Contributor

soumith commented Mar 13, 2018

thanks @Officium !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants