Fix: sparse_csr_tensor segfaults when crow_indices or col_indices are non-tensors (#56723)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56723
WIP gh-56687
Test Plan: Imported from OSS
Reviewed By: H-Huang
Differential Revision: D27999919
Pulled By: ezyang
fbshipit-source-id: 7eb23c8f45f3c459efe65793caecaa6b67a187c9