您的位置:首页 > Web前端

Different Readers for different file types(Tensorflow 的几种读取数据的方式)

2017-08-04 21:34 543 查看
tf.TextLineReader

Outputs the lines of a file delimited by newlines

E.g. text files, CSV files

tf.FixedLengthRecordReader

Outputs the entire file when all files have same fixed lengths

E.g. each MNIST file has 28 x 28 pixels, CIFAR-10 32 x 32 x 3

tf.WholeFileReader

Outputs the entire file content

tf.TFRecordReader

Reads samples from TensorFlow’s own binary format (TFRecord)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Tensorflow 读取数据