You must feed a value for placeholder tensor 'Placeholder' with dtype float

后端 未结 2 1470
-上瘾入骨i
-上瘾入骨i 2021-01-07 17:35

I\'m a newer to tensorflow, I really don\'t know how to solve the problem.

The code is like:

  1. Feed the train with values:

    sess.run(tr         
    
    
            
2条回答
  •  青春惊慌失措
    2021-01-07 18:13

    Some questions

    first
    why you use sess = tf.InteractiveSession() and with tf.Session() as sess: at same time, just curious

    second what is your placeholder name x or images?
    if name is x, {images: x_data...} won't feed x_data to x, it override(?) images
    I think feed_dict should be {x: x_data...}

    if name is images,do you have two images in your program, placeholder and shuffle data, try to modify name of variable

提交回复
热议问题