level 1
frostº
楼主
tensorflow使用dropout,设置了一个占位符
keepProb = tf.placeholder(tf.float32)
使用时:
sess.run(train_step, feed_dict={
keepProb: 0.6,
x_data: rand_x[:, 0:11],
x_data1: rand_x[:, 11:22],
y_target: rand_y
})
一直报错
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'Placeholder_2' with dtype float
[[node Placeholder_2 (defined at D:/test.py:45) = Placeholder[dtype=DT_FLOAT, shape=<unknown>, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]
请问一下怎么解决
2020年04月17日 14点04分
1
keepProb = tf.placeholder(tf.float32)
使用时:
sess.run(train_step, feed_dict={
keepProb: 0.6,
x_data: rand_x[:, 0:11],
x_data1: rand_x[:, 11:22],
y_target: rand_y
})
一直报错
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'Placeholder_2' with dtype float
[[node Placeholder_2 (defined at D:/test.py:45) = Placeholder[dtype=DT_FLOAT, shape=<unknown>, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]
请问一下怎么解决