when I write A Libtorch API for detector. I find all NMS in GitHub are access to python version. There is not The Api for Only C++ . So I do for every one when need NMS_cuda in your C++ API
bash make.sh
we get libnms.so
we give a easily example to test
g++ -o nms nms.cpp -L. -lnms && ./nms
when U use this Api, REMEBER the Det U must be sorting scores according to descending order ;.