I'm trying to read data from CSV files to tensorflow,
The sample code in official document is like this:
col1, col2, col3, col4, col5 = tf.decode_csv(value, record_defaults=record_defaults)
To read the file, I need to know how many columns and lines in the file beforehand, and if there are 1000 columns, I need to define 1000 variables like col1, col2, col3, col4, col5,..., col1000 ,
this doesn't look like an efficient way to read data.
My questions
What is the best way to read CSV files into Tensorflow ?
Is there any way to read Database (such as mongoDB) in Tensorflow ?