discounted_cumsum.cpp 251 Bytes
Newer Older
1
2
#include <torch/extension.h>

anton's avatar
anton committed
3
4

torch::Tensor discounted_cumsum_right(torch::Tensor x, double gamma);
5
6
7


PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
anton's avatar
anton committed
8
9
  m.def("discounted_cumsum_right", &discounted_cumsum_right,
      "Discounted Cumulative Sum Right");
10
}