Your GT710 supports CUDA and uses a compute capability of 3.5.
The PyTorch binaries are built for a compute capability >= 3.7 as seen here 9, so you would need to build PyTorch from source as described here 17.