After I update libtorch 1.5(C++, cuda10.1), torch::cuda::is_available() keeps returning false, and I couldn’t find the reason. Before that, I was using libtorch 1.3(C++, cuda10.1), and everything is OK.