Don't segfault on trying to get data_ptr of sparse tensor. (#18347)
authorGregory Chanan <gchanan@fb.com>
Mon, 25 Mar 2019 15:53:42 +0000 (08:53 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 25 Mar 2019 15:59:53 +0000 (08:59 -0700)
commitf5ea52868777b63283200c2261e85001999913f5
treeeb72f0a39b244e178b0318c1198817b95f386de0
parent647154f82ac2c57769f080c41452b3e5960ab94f
Don't segfault on trying to get data_ptr of sparse tensor. (#18347)

Summary:
Also asserts in storage_initialized that there is a storage.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18347

Differential Revision: D14582028

Pulled By: gchanan

fbshipit-source-id: df3f5d181188f39e361839169fd054539c3b2839
c10/core/TensorImpl.h