File size: 284 Bytes
58627fa
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <torch/extension.h>

torch::Tensor packbits_cuda(const torch::Tensor residuals);

torch::Tensor packbits(const torch::Tensor residuals) {
    return packbits_cuda(residuals);
}

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
    m.def("packbits_cpp", &packbits, "Pack bits");
}