2
我使用tensorflow(僅CPU版本)下蟒森蚺3.5.2 4.3.1(64位)內的Windows 7操作系統死亡。當我運行下面的代碼時,python內核死了,並且無法重新啓動,但沒有錯誤信息提示。Python的內核使用tensorflow時
print ("test accuracy %.3f" % accuracy.eval(feed_dict={
x: mnist.test.images, y_: mnist.test.labels, keep_prob: 1.0}))
但是當我運行了類似的代碼,蟒蛇正常工作:
train_accuracy = accuracy.eval(feed_dict={
x:batch[0], y_: batch[1], keep_prob: 1.0})
哪些原因可能導致這個問題?