"benchmarks/vscode:/vscode.git/clone" did not exist on "7e1d5e5308fa3549dfed1821188d588260a03c8a"
discounted_cumsum.cpp 519 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#include <torch/extension.h>

torch::Tensor discounted_cumsum_right_minthreads(torch::Tensor x, double gamma);
torch::Tensor discounted_cumsum_right_coalesced(torch::Tensor x, double gamma);


PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  m.def("discounted_cumsum_right_minthreads", &discounted_cumsum_right_minthreads,
      "Discounted Cumulative Sum Right Minimum Threads");
  m.def("discounted_cumsum_right_coalesced", &discounted_cumsum_right_coalesced,
      "Discounted Cumulative Sum Right Coalesced Writes");
}