Skip to content

Commit 4411b8f

Browse files
committed
Fix profiler
1 parent 0c325a3 commit 4411b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def train_model(self, train_loader, val_loader):
400400
self.logger.flush()
401401

402402
if self.profile:
403-
train_metrics.values()[0].block_until_ready()
403+
list(train_metrics.values())[0][0].block_until_ready()
404404
jax.profiler.stop_trace()
405405

406406
self.logger.close()

0 commit comments

Comments
 (0)