Skip to content

Commit

Permalink
Fix single gpu stat logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed Mar 1, 2023
1 parent 946372d commit d0c9b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elk/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def train(cfg: RunConfig, out_dir: Optional[Path]):
if len(devices) == 1:
pbar = tqdm(iterator, total=L, unit="layer")
for i, (train_h, val_h) in enumerate(pbar):
train_reporter(
layer_stat = train_reporter(
cfg,
i,
train_h,
Expand All @@ -181,6 +181,7 @@ def train(cfg: RunConfig, out_dir: Optional[Path]):
device=devices[0],
out_dir=out_dir,
)
writer.writerow([L - i, *layer_stat])
else:
# Use one queue to distribute the work to the workers, and another to
# collect the results.
Expand Down

0 comments on commit d0c9b0e

Please sign in to comment.