首页 文章

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

提问于
浏览
1

我一直试图在我的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的RAM . 但是在查看Nvidia面板时,它显然拥有10GB的可用内存和仅2GB的专用视频内存(我想TF正在使用RAM的这部分而不是其余部分) . 这很烦人,因为我总是很快耗尽内存...

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

2 回答

相关问题