原文:InvalidArgumentError: You must feed a value for placeholder tensor 'Placeholder_1' with dtype float and shape [?,10]

在莫烦Python教程的 Dropout 解决 overfitting 一节中,出现错误如下: InvalidArgumentError: You must feed a value for placeholder tensor Placeholder with dtype float and shape , 代码如下: 原因: 在feed dict中没有加入keep prob的key和value ...

2018-03-05 21:24 4 10885 推荐指数:

查看详情

ValueError: Cannot feed value of shape ..

这里x_,y_是两个数字,当我运行时 with tf.Session() as sess: #定义session对象生成器 for step in range(201) : sess.run(train,feed_dict = {x: x_data,y ...

Thu Mar 15 18:37:00 CST 2018 2 5563
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM