Remove: duplicate feed_dict constructing (#3431)

This commit is contained in:
Chunyang Wen
2018-11-30 02:21:46 +08:00
committed by Eric Liang
parent 7e319dbf0c
commit fd7e494344
@@ -205,9 +205,6 @@ class SGDWorker(object):
def compute_gradients(self):
start = time.time()
feed_dict = self._grad_feed_dict()
# Aggregate feed dicts for each model on this worker.
for model in self.models:
feed_dict.update(model.get_feed_dict())
# We only need to fetch the first per_device_grad, since they are
# averaged across all devices by allreduce.
fetches = self.sess.run(