Add empty tensor tests to test_sparse#11228
Conversation
dc10d93 to
d452320
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
yf225 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
c6fd8f3 to
33e2682
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
yf225 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
test/test_sparse.py
Outdated
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
don't you want to do the above in cuda as well? |
7d2485f to
3ec5014
Compare
|
@gchanan yes sorry for oversight - just added it to cuda as well |
|
@pytorchbot retest this please |
2 similar comments
|
@pytorchbot retest this please |
|
@pytorchbot retest this please |
3681f69 to
8d7f6cf
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
facebook-github-bot
left a comment
There was a problem hiding this comment.
yf225 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
yay. I'll rebase #11232 on top of master. |
|
Unlanding this PR because of a test error on master: https://ci.pytorch.org/jenkins/job/pytorch-builds/job/pytorch-linux-xenial-cuda8-cudnn6-py3-test2/10441//console. Will investigate using the CI in this PR. |
5a2f586 to
af8a22c
Compare
179fba8 to
fe5f89c
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
yf225 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: This PR adds empty sparse tensor tests to `test_sparse.py`, and also fix various places in internal code to make the tests pass. **[NOTE] API CHANGE:** - `coalesce` on sparse tensor will always be performed out-of-place now (meaning the original tensor will never be affected) Pull Request resolved: pytorch/pytorch#11228 Differential Revision: D9930449 Pulled By: yf225 fbshipit-source-id: 7c62439b216a6badf7938a10741c358ff18a556d
This PR adds empty sparse tensor tests to
test_sparse.py, and also fix various places in internal code to make the tests pass.