安装完深度学习环境后需要检查GPU是否可用,方法如下 TensorFlow import tensorflow as tf print(tf.test.is_gpu_available()) PyTorch import torch print(torch.cuda.is_available())