Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Sep 19, 2023
1 parent 7477e23 commit 1269513
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion algorithmic_efficiency/workloads/criteo1tb/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ def _eval_model_on_split(self,
global_batch_size=global_batch_size,
repeat_final_dataset=True)
loss = 0.0
for _ in range(num_batches):
for i in range(num_batches):
eval_batch = next(self._eval_iters[split])
if i == (num_batches - 1):
print(eval_batch.get('weights'))
loss += self._eval_batch(params, eval_batch)
if USE_PYTORCH_DDP:
dist.all_reduce(loss)
Expand Down

0 comments on commit 1269513

Please sign in to comment.