错误描述为:
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'image_feed' with dtype string
[[Node: image_feed = Placeholder[dtype=DT_STRING, shape=[], _device="/job:localhost/replica:0/task:0/cpu:0"]()]]
导致本错误的原因有两个:
1.没有向image_feed这个Placeholder节点中传值,向此节点中传值即可。
2.程序中有多个sess.run(),向第一个sess.run()传入值后参与计算,后面sess.run()的计算节点依赖第一个sess.run()传入的值,但是在本次sess.run()中你没有再次传入。此时你可以重新传入,或保存计算后的节点传入计算后的节点,后者避免了重复计算,建议使用后者。