Skip to content

Commit fd7e494

Browse files
chunyang-wenericl
authored andcommitted
Remove: duplicate feed_dict constructing (#3431)
1 parent 7e319db commit fd7e494

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

python/ray/experimental/sgd/sgd_worker.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ def for_model(self, fn):
205205
def compute_gradients(self):
206206
start = time.time()
207207
feed_dict = self._grad_feed_dict()
208-
# Aggregate feed dicts for each model on this worker.
209-
for model in self.models:
210-
feed_dict.update(model.get_feed_dict())
211208
# We only need to fetch the first per_device_grad, since they are
212209
# averaged across all devices by allreduce.
213210
fetches = self.sess.run(

0 commit comments

Comments
 (0)