Skip to content

Conversation

gmagogsfm
Copy link
Collaborator

This PR tests pytorch/pytorch#40557 in pytorch/pytorch.

Closes #2215

@gmagogsfm gmagogsfm requested a review from ailzhang June 29, 2020 17:39
@ailzhang ailzhang requested a review from dlibenzi June 29, 2020 17:57
@JackCaoG
Copy link
Collaborator

Thanks for making the change. we also disabled couple embeddingBag related test and I think your change might fix those tests. Could you give them a try? Searching for EmbeddingBag in https://github.com/pytorch/xla/blob/master/test/pytorch_test_base.py#L209 and delete those line will enable those tests.

@gmagogsfm gmagogsfm force-pushed the test_embedding branch 2 times, most recently from e1cd942 to 651459a Compare July 1, 2020 01:18
@gmagogsfm gmagogsfm changed the title Add test case to ensure EmbeddingBag gradient computation works Re-enable test case to ensure EmbeddingBag gradient computation works Jul 1, 2020
@gmagogsfm gmagogsfm force-pushed the test_embedding branch 2 times, most recently from 59d1dab to 76af62c Compare July 1, 2020 04:57
'TestNNDeviceTypeXLA': {
'test_embedding_backward', # sparse
'test_embedding_dense_grad', # slow
'test_EmbeddingBag_per_sample_weights_and_new_offsets', # FIXME! UndefinedTensorImpl::_singleton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw there're 3 more embeddingbag tests below, could you confirm they're still failing (are they different issues?) Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they are still failing. Two of them are failing because they test sparse tensor behavior. The other fails due to a different runtime error.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind updating them with the latest error message? (The singleton issue should be fixed by your PR) Thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. And had a nice surprise of finding an extra test that's passing but missed before

@gmagogsfm
Copy link
Collaborator Author

Thanks for making the change. we also disabled couple embeddingBag related test and I think your change might fix those tests. Could you give them a try? Searching for EmbeddingBag in https://github.com/pytorch/xla/blob/master/test/pytorch_test_base.py#L209 and delete those line will enable those tests.

Thanks, ended up enabling one of those tests instead of adding a new one.

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gmagogsfm ! Only had one minor comment about keeping our skipped list up to date.

'TestNNDeviceTypeXLA': {
'test_embedding_backward', # sparse
'test_embedding_dense_grad', # slow
'test_EmbeddingBag_per_sample_weights_and_new_offsets', # FIXME! UndefinedTensorImpl::_singleton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind updating them with the latest error message? (The singleton issue should be fixed by your PR) Thanks

@gmagogsfm
Copy link
Collaborator Author

Pin removed.

@dlibenzi dlibenzi merged commit d8d9b5e into pytorch:master Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

embeddingbad error

4 participants