Fix crash in SparseTensorToCSRSparseMatrixCPUFunctor
#49442
Merged
SparseTensorToCSRSparseMatrixCPUFunctor
#49442