Skip to content

Commit

Permalink
pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
derpyplops committed Jul 20, 2023
1 parent 0d6c8b9 commit 785537b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elk/training/multi_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def __init__(self, reporter: list[ReporterWithInfo]):
)

self.train_loss = (
sum(train_losses) / len(train_losses)
if train_losses is not None # type: ignore
sum(train_losses) / len(train_losses) # type: ignore
if train_losses is not None
else None
)

Expand Down

0 comments on commit 785537b

Please sign in to comment.