![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ubuntu
M.François
Learning code by doing more projects as many as you can.
展开
-
查看ubuntu系统信息
cat /etc/os-release输出为NAME="Ubuntu"VERSION="17.10 (Artful Aardvark)"ID=ubuntuID_LIKE=debianPRETTY_NAME="Ubuntu 17.10"VERSION_ID="17.10"HOME_URL="https://www.ubuntu.com/"SUPPORT_URL="https:/.原创 2018-08-11 21:59:12 · 429 阅读 · 0 评论 -
TensorFlow查看GPU信息
查看是否有GPUimport tensorflow as tfgpu_device_name = tf.test.gpu_device_name()print(gpu_device_name)输出/device:GPU:0GPU是否可用# 返回True或者Falsetf.test.is_gpu_available()from tensorflow.python.clien...原创 2018-11-07 19:26:57 · 52124 阅读 · 2 评论