Clean up some sparse code. (#18962)
authorGregory Chanan <gchanan@fb.com>
Mon, 8 Apr 2019 15:10:19 +0000 (08:10 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 8 Apr 2019 15:15:42 +0000 (08:15 -0700)
commit2addcccbf1e6b1327c9667ec1d559c2143d4206a
tree02c7549700576e2d84c964f9c4bf74e38882b7d4
parent65b91967412e005857898924a4c2bdf245f63063
Clean up some sparse code. (#18962)

Summary:
1) sparse_dispatches in native_parse was not used anymore, got rid of it.
2) got rid of overloaded sizes_ in SparseTensorImpl, which just uses the base implementation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18962

Differential Revision: D14811545

Pulled By: gchanan

fbshipit-source-id: 2fa60ef50456b5f605caa63beae1d8d2542fd527
aten/src/ATen/SparseTensorImpl.cpp
aten/src/ATen/SparseTensorImpl.h
aten/src/ATen/native_parse.py