How to read data into Tensorflow?

后端 未结 4 560
鱼传尺愫
鱼传尺愫 2021-02-05 22:22

I\'m trying to read data from CSV files to tensorflow,

https://www.tensorflow.org/versions/r0.7/how_tos/reading_data/index.html#filenames-shuffling-and-epoch-limits

4条回答
  •  情歌与酒
    2021-02-05 23:00

    def func()
        return 1,2,3,4
    
    b = func() 
    
    print b #(1, 2, 3, 4)
    
    print [num for num in b] # [1, 2, 3, 4]
    

    Hi its nothing to do with tensorflow its simple python need not define 1000 variable. tf.decode_csv returns a tuple.

    No idea on database handling, I think u can use python and just input the data in the form of array to the tensorflow.

    Hope this is helpful

提交回复
热议问题