参考:Pytorch2Onnxruntime的github地址,忘记了具体网址了 一、头文件配置 命名为:sampling_gpu.h #ifndef _SAMPLING_GPU_H #define _SAMPLING_GPU_H #include <ATen/cuda/CUDAContext.h>