参考:https://www.tensorflow.org/install/pip
用来验证tensorflow是否运行GPU:
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
参考:https://www.tensorflow.org/install/pip
用来验证tensorflow是否运行GPU:
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"