42

tensorflow数据加载方式-abe-51CTO博客

 6 years ago
source link: http://blog.51cto.com/abezoo/2072567
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
tensorflow当前具有三种读取数据的方式:1.预加载(preloaded):在构建tensorflow流图时直接定义常量数据,由于数据是直接镶嵌在流图中,所以当数据量很大时将占用大量内存importtensorflowastfa=tf.constant([1,2,3],name='input_a')b=tf.constant([4,5,6],name='input_b

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK