Assert tensor isn't sparse in enforce_invariants. (#18338)
authorGregory Chanan <gchanan@fb.com>
Mon, 25 Mar 2019 15:38:11 +0000 (08:38 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 25 Mar 2019 15:44:17 +0000 (08:44 -0700)
commit647154f82ac2c57769f080c41452b3e5960ab94f
tree2840f97f9ee27981ba4f7a5179d8dafeae15e66f
parenta4f83fff2b7fb0e7ca7b584648c98165b2576ed4
Assert tensor isn't sparse in enforce_invariants. (#18338)

Summary:
There's no reason we can't check this, but I'm punting on implementing it for now.  But it currently segfaults, so this is an improvements.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18338

Differential Revision: D14580308

Pulled By: gchanan

fbshipit-source-id: 44d4cafeab12e1beeb3453a2d4068d221c2e9c4f
aten/src/ATen/core/Tensor.cpp