conda create -n tf21 python=3.7
conda activate tf21
conda install tensorflow-gpu==2.1
验证
import tensorflow as tf
tf.test.is_built_with_cuda()
conda create -n tf21 python=3.7
conda activate tf21
conda install tensorflow-gpu==2.1
验证
import tensorflow as tf
tf.test.is_built_with_cuda()