Skip to content Skip to sidebar Skip to footer

How To *correctly* Read Data From Csv's Into Tensorflow

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, but ca

Solution 1:

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)

Post a Comment for "How To *correctly* Read Data From Csv's Into Tensorflow"