Tensorflow没有显示适量的可用内存

时间:2018-05-25 13:39:24

标签: tensorflow gpu nvidia ram

我一直在尝试在我的GPU上运行我的神经网络但由于某些原因在创建设备时,Tensorflow将无法看到完整的RAM内存,而是专注于可用的2GB可用内存...

Using TensorFlow backend.
2018-05-25 11:00:56.992852: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this Ten
sorFlow binary was not compiled to use: AVX2
2018-05-25 11:00:57.307883: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1356] Found device 0 with properties:
name: Quadro K620 major: 5 minor: 0 memoryClockRate(GHz): 1.124
pciBusID: 0000:02:00.0
totalMemory: 2.00GiB freeMemory: 1.77GiB
2018-05-25 11:00:57.307883: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1435] Adding visible gpu devices: 0
2018-05-25 11:00:59.637116: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:923] Device interconnect StreamExecutor with s
trength 1 edge matrix:
2018-05-25 11:00:59.638116: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:929]      0
2018-05-25 11:00:59.638116: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:942] 0:   N
2018-05-25 11:00:59.644117: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1053] Created TensorFlow device (/job:localhos
t/replica:0/task:0/device:GPU:0 with 1331 MB memory) -> physical GPU (device: 0, name: Quadro K620, pci bus id: 0000:02:00.0, compute capability: 5.0)

GPU是Windows 7上的Quadro K620(根据任务经理)16GB内存。但是在查看Nvidia面板时,它显然拥有10GB的可用内存和仅2GB的专用视频内存(我想TF正在使用RAM的这部分而不是其余部分)。这很烦人,因为我总是很快就会耗尽内存......

有人可以了解正在发生的事情以及TF为何会这样做吗?

2 个答案:

答案 0 :(得分:2)

TF没有任何问题。你的显卡正好有2GB的DDR3内存。我认为你将GPU RAM与你的CPU RAM混淆,这可能确实是16 GB。

答案 1 :(得分:0)