Thanks.
You mean that example code dosen’t works or libtorch api can’t use in nvcc compiler(.cu file)?
I just want to use libtorch api in .cu file
My actual problem is when i try #include<torch/torch.h> in .cu file(nvcc) there is error  E1866
on “C10_DEFINE_DEPRECATED_USING(IntList, ArrayRef<int64_t>)”.
Am i wrong or Is it impossible?