Skip to content

Commit

Permalink
fix: always show total last
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedrennan committed Jan 2, 2024
1 parent b97a8a2 commit e2b3e82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imaginairy/utils/log_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def get_performance_stats(self) -> dict[str, dict[str, float]]:
self.summary_context.stop()
self.timing_contexts["total"] = self.summary_context

# move total to the end
self.timing_contexts["total"] = self.timing_contexts.pop("total")

if torch.cuda.is_available():
self.summary_context.memory_peak = max(
max(context.memory_peak, context.memory_start, context.memory_end)
Expand Down

0 comments on commit e2b3e82

Please sign in to comment.