How to decode a file csvwith long lines (for example, with many elements per line, so that it is not realistic to display them one by one for output) with tf.TextLineReader () and tf.decode_csv?
Typical Usage:
reader = tf.TextLineReader()
key, value = reader.read(filename_queue)
record_defaults = [1,1,1,1,1]
a,b,c,d,e = tf.decode_csv(records=value,record_defaults=record_defaults, field_delim=" ")
When we have thousands of elements in a row, it is impossible to assign them one by one as (a, b, c, d, e) above, can all elements be decoded into a list or something like that?
source
share