How to *actually* read CSV data in TensorFlow?

前端 未结 5 1204
感动是毒
感动是毒 2020-11-28 22:32

I\'m relatively new to the world of TensorFlow, and pretty perplexed by how you\'d actually read CSV data into a usable example/label tensors in Te

5条回答
  •  既然无缘
    2020-11-28 23:20

    You can use latest tf.data API :

    dataset = tf.contrib.data.make_csv_dataset(filepath)
    iterator = dataset.make_initializable_iterator()
    columns = iterator.get_next()
    with tf.Session() as sess:
       sess.run([iteator.initializer])
    

提交回复
热议问题