You must feed a value for placeholder tensor 'Placeholder' with dtype float......?
学习使用tensorflow实现卷积神经网络,显示错误如下: InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder' with dtype float and shape [128,24,24,3] [[Node: Placeholder = Placeholder[dtype=DT_FLOAT, shape=[128,24,24,3], _device="/job:localhost/replica:0/task:0/cpu:0"]()]] 有大神能指教下这是哪错了?
最满意答案
1. 上面的placeholder占位符(理解为声明)没有被赋值(成为变量),为找具体的placeholder最好给它命名(定义的时候) 2. 查看的输入的placeholder的shape和dtype是否正确 3. 当输入的placeholder的shape和dtype正确时,那么注意在计算图中是否有对该placeholder(成为变量了)进行运算或重新赋值更多推荐
发布评论