Repository: pytorch
Issue: `torch.smm` backward fail with strange error message
Labels: module: sparse,triaged

### 🐛 Describe the bug

`torch.smm` backwards fail with strange error message. Besides, with the same input, `torch.mm` will backward successfully and get the correct gradients.

```python
import torch
input = torch.rand([16, 64], dtype=torch.float32, requires_grad=True).to_sparse()
mat = torch.rand([64, 1], dtype=torch.float32, requires_grad=True)

torch.smm(input, mat).sum().backward()
```

The error message
```
NotImplementedError: Could not run 'aten::sum.IntList_out' with arguments from the 'SparseCPU' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'aten::sum.IntList_out' is only available for these backends: [CPU, Meta, BackendSelect, Python, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradLazy, AutogradXPU, AutogradMLC, AutogradHPU, AutogradNestedTensor, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, AutocastCPU, Autocast, Batched, VmapMode, Functionalize].

CPU: registered at /Users/distiller/project/pytorch/build/aten/src/ATen/RegisterCPU.cpp:21063 [kernel]
Meta: registered at /Users/distiller/project/pytorch/build/aten/src/ATen/RegisterMeta.cpp:14951 [kernel]
BackendSelect: fallthrough registered at /Users/distiller/project/pytorch/aten/src/ATen/core/BackendSelectFallbackKernel.cpp:3 [backend fallback]
Python: registered at /Users/distiller/project/pytorch/aten/src/ATen/core/PythonFallbackKernel.cpp:47 [backend fallback]
Named: fallthrough registered at /Users/distiller/project/pytorch/aten/src/ATen/core/NamedRegistrations.cpp:11 [kernel]
Conjugate: registered at /Users/distiller/project/pytorch/aten/src/ATen/ConjugateFallback.cpp:18 [backend fallback]
Negative: registered at /Users/distiller/project/pytorch/aten/src/ATen/native/NegateFallback.cpp:18 [backend fallback]
ZeroTensor: registered at /Users/distiller/project/pytorch/aten/src/ATen/ZeroTensorFallback.cpp:86 [backend fallback]
ADInplaceOrView: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/ADInplaceOrViewType_1.cpp:3076 [kernel]
AutogradOther: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradCPU: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradCUDA: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradXLA: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradLazy: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradXPU: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradMLC: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradHPU: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradNestedTensor: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradPrivateUse1: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradPrivateUse2: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
AutogradPrivateUse3: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:11380 [autograd kernel]
Tracer: registered at /Users/distiller/project/pytorch/torch/csrc/autograd/generated/TraceType_2.cpp:12568 [kernel]
AutocastCPU: fallthrough registered at /Users/distiller/project/pytorch/aten/src/ATen/autocast_mode.cpp:461 [backend fallback]
Autocast: fallthrough registered at /Users/distiller/project/pytorch/aten/src/ATen/autocast_mode.cpp:305 [backend fallback]
Batched: registered at /Users/distiller/project/pytorch/aten/src/ATen/BatchingRegistrations.cpp:1059 [backend fallback]
VmapMode: fallthrough registered at /Users/distiller/project/pytorch/aten/src/ATen/VmapModeRegistrations.cpp:33 [backend fallback]
Functionalize: registered at /Users/distiller/project/pytorch/build/aten/src/ATen/RegisterFunctionalization_1.cpp:5316 [kernel]
```

### Versions

pytorch: 1.11.0 and nightly version

cc @nikitaved @pearu @cpuhrsch