Throw an error if nbytes is called on a sparse tensor. (#33897)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33897
Test Plan: Imported from OSS
Differential Revision: D20146388
Pulled By: gchanan
fbshipit-source-id: b5853096e290fa7fb50be41446b138ebdf71009f