Fix bug in torch.sparse.addmm on CUDA when beta != 0 or 1 (#56160)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/55917, which caused `torch.sparse.addmm` to fail on CUDA whenever `beta` was different from 0 or 1
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56160
Reviewed By: ejguan
Differential Revision: D27825108
Pulled By: ngimel
fbshipit-source-id: 2ade5ea38c5322768dc4dffb40c65fcbb17ec201