1. 程式人生 > >TensorFlow Allocation of 1511424000 exceeds 10% of system memory

TensorFlow Allocation of 1511424000 exceeds 10% of system memory

在利用TensorFlow社群的神經網路新手教程的一個例程時,遇到了一個因為記憶體問題而導致電腦卡主沒反應的問題,本次神經網路的模型為一隱層的神經網路模型(2,3,1結構),在訓練過程中,出現了記憶體的問題。 print(‘test accuracy %.3f’%accuracy.eval(feed_dict={ x: mnist.test.images, y_label: mnist.test.labels, keep_prop: 1.0})),報錯Allocation of 31360000 exceeds 10% of system memory.這是因為電腦配置(i5-4210U,4G記憶體)過低的原因嗎?還是因為匯入資料是出問題了?