5
你能提供使用高层次的API估计有占位符和喂养像批次的基本使用的例子:Tensorflow,饲养Estimator.fit(批)
for step in xrange(max_steps):
batch_of_inputs,batch_of_targets= get_batch_from_disk(step)# e.g.batches are stored as list where step is and index of the list
feed_dict = {x:batch_of_inputs,y:batch_of_targets}
_, loss_value = sess.run([train_op, loss],
feed_dict=feed_dict)
如何做估计相同API? Estimator将batch_size,steps,input_fuc或feed_fun作为拟合函数的参数(请参阅文档https://www.tensorflow.org/versions/master/api_docs/python/contrib.learn/estimators),但我不清楚如何实现一个函数,该函数将从一个批处理中加载数据。磁盘?