Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Jan 13, 2025
1 parent f66f6e3 commit 927fe75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def finish(self, state: LMState):
float_bytes = 4

print(f"Memory usage {dev_s} after encoder forward:", " ".join(_collect_mem_stats()))
snapshot_start = tracemalloc.take_snapshot()
snapshot_start = tracemalloc.take_snapshot() if debug_tracemalloc else None

hyps = []
scores = []
Expand Down

0 comments on commit 927fe75

Please sign in to comment.