#pragma once #include "../extensions.h" std::tuple> spmm_cpu(torch::Tensor rowptr, torch::Tensor col, torch::optional optional_value, torch::Tensor mat, std::string reduce); torch::Tensor spmm_value_bw_cpu(torch::Tensor row, torch::Tensor rowptr, torch::Tensor col, torch::Tensor mat, torch::Tensor grad, std::string reduce);