2018年6月8日
摘要: 结果: Tensor(“shuffle_batch_2:0”, shape=(50, 4), dtype=float32) Tensor(“shuffle_batch_2:1”, shape=(50,), dtype=int32) 从它的数据维度可知,数据已经读入。 一个完整的例子见github:h 阅读全文
posted @ 2018-06-08 19:19 jujua 阅读(1727) 评论(0) 推荐(0) 编辑
摘要: tensorflow有两种数据输入方法,比较简单的一种是使用feed_dict,这种方法在画graph的时候使用placeholder来站位,在真正run的时候通过feed字典把真实的输入传进去。比较简单不再介绍。 比较恼火的是第二种方法,直接从文件中读取数据(其实第一种也可以我们自己从文件中读出来 阅读全文
posted @ 2018-06-08 14:37 jujua 阅读(1831) 评论(0) 推荐(0) 编辑