美文网首页
使用Tensorflow列出所有本地设备

使用Tensorflow列出所有本地设备

作者: crazyhank | 来源:发表于2018-08-26 10:56 被阅读0次
hank@hank-desktop:~/Study/CV$ python
Python 2.7.6 (default, Nov 23 2017, 15:49:48) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from tensorflow.python.client import device_lib
>>> device_lib.list_local_devices()
2018-08-26 10:52:20.127195: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:964] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-08-26 10:52:20.127792: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Found device 0 with properties: 
name: GeForce GTX 750 Ti major: 5 minor: 0 memoryClockRate(GHz): 1.0845
pciBusID: 0000:01:00.0
totalMemory: 3.95GiB freeMemory: 3.91GiB
2018-08-26 10:52:20.127837: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1485] Adding visible gpu devices: 0
2018-08-26 10:52:20.472215: I tensorflow/core/common_runtime/gpu/gpu_device.cc:966] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-08-26 10:52:20.472288: I tensorflow/core/common_runtime/gpu/gpu_device.cc:972]      0 
2018-08-26 10:52:20.472305: I tensorflow/core/common_runtime/gpu/gpu_device.cc:985] 0:   N 
2018-08-26 10:52:20.472557: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1098] Created TensorFlow device (/device:GPU:0 with 3640 MB memory) -> physical GPU (device: 0, name: GeForce GTX 750 Ti, pci bus id: 0000:01:00.0, compute capability: 5.0)
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 86255338010348971
, name: "/device:GPU:0"
device_type: "GPU"
memory_limit: 3817013248
locality {
  bus_id: 1
  links {
  }
}
incarnation: 8945999541222738902
physical_device_desc: "device: 0, name: GeForce GTX 750 Ti, pci bus id: 0000:01:00.0, compute capability: 5.0"
]

相关文章

  • 使用Tensorflow列出所有本地设备

  • git 分支

    列出所有本地分支 $ git branch 列出所有远程分支 $ git branch -r 列出所有本地分支和远...

  • git 分支命令

    列出所有本地分支 $ git branch 列出所有远程分支 $ git branch -r 列出所有本地分支和远...

  • adb进行手机操作

    adb devices列出所有连接电脑的设备 adb reboot重启手机 adb pull <远程路径> <本地...

  • Git 分支

    查看分支 列出所有本地分支 列出所有远程分支 列出所有本地分支和远程分支 分支分类 分支有三种: 本地分支(loc...

  • Git分支管理

    列出分支 ** -a **:列出所有的分支(本地和远程)** -r **:列出远程的分支** -l **:列出本地...

  • git篇之branch

    git branch --->列出本地所有分支和当前分支 git branch -a --->列出本地和远程所有分...

  • Git---分支(Branch)

    列出分支$ git branch//列出所有本地分支$ git branch -r//列出所有远程分支$ git ...

  • Git使用

    分支 查看分支 列出所有本地分支$ git branch 列出所有线上分支$ git branch -a 创建分支...

  • git branch(分支)和 标签(tag)操作

    分支操作 1、列出所有本地分支 $git branch 2、列出所有远程分支 $git branch -r 3、列...

网友评论

      本文标题:使用Tensorflow列出所有本地设备

      本文链接:https://www.haomeiwen.com/subject/fnzniftx.html