About CUDA VERSION

Found GPU0 GeForce RTX 2070 which requires CUDA_VERSION >= 8000 for
 optimal performance and fast startup time, but your PyTorch was compiled
 with CUDA_VERSION 8000. Please install the correct PyTorch binary
 using instructions from http://pytorch.org

It seems that I’m using the correct version of pytorch, how this warning happen?

Did you try to update your CUDA version?