Closed villenahkuri closed 8 years ago
I think it would be better to use filename_queue = tf.train.string_input_producer([os.path.join(os.getcwd(), file_name)])
Hi @villenahkuri and @wp-lai : sorry for the long delay in responding. I've updated the code in both the repo and our book's master files. Thank you so much for opening this up!
This mechanism to create full path:
filename_queue = tf.train.string_input_producer([os.path.dirname(__file__) + "/" + file_name])
produces just '/train.csv' for me on Mac OSX.
That generates a confusing and scary stack trace, which misleads a Tensorflow novice for quite some time.
Finally when I removed the path setting, the code works just fine (naturally requires that input file is in the same folder):
filename_queue = tf.train.string_input_producer([file_name])
Stack trace: