std :: ml::sparse
Function std::tensor_spmm
&FloatTensor tensor_spmm(const &SparseTensor s, const &FloatTensor x)out [rows, n] = S [rows, cols] . X [cols, n], with gradients to S's values and to X. Runs on the device of S's values / X when either is on one.