随笔分类 -  Python

摘要:TensorFlow中有三种方法可以用来读取数据,第一种是直接使用constant给常量赋值;第二种是使用dict进行feed,但是速度会很慢,因为需要先把文件整个读到内存中。 第三种也是最常用的是使用TF中自带的datareaders来进行:TF 包含了四种DataReaders:tf.TextL 阅读全文
posted @ 2017-09-04 11:31 dabney 阅读(309) 评论(0) 推荐(0)
摘要:随便在网上找了找,感觉都是讲半天讲不清楚,这里写一下。 输出: 为什么会这样呢,点进send就能看到一句话send:Resumes the generator and "sends" a value that becomes the result of the current yield-expre 阅读全文
posted @ 2017-05-07 21:40 dabney 阅读(1364) 评论(0) 推荐(1)