How to *correctly* read data from csv's into TensorFlow

后端 未结 1 376
南笙
南笙 2021-01-15 04:38

I came across this so posting showing us how to setup the code to read in csv files using a queue. However, each time I run it, I run into an error. I\'ve tried debugging it

相关标签:
1条回答
  • 2021-01-15 05:00

    I think what you are missing is initialization of local variables (e.g. input_producer/limit_epochs/epochs). Local variables are not initialized during initialization of all variables, which btw is quite confusing.

    You can add the following initialization operation that will initialize everything at once:

    init_op = tf.group(tf.initialize_all_variables(),
                       tf.initialize_local_variables())
    

    and then:

    sess.run(init_op)
    
    0 讨论(0)
提交回复
热议问题