原文: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