Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 20, 2024
1 parent 05a2a66 commit ebf420c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thunder/examine/memory_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def get_alloc_memory(trc: TraceCtx, *, annotate=False) -> tuple[int, dict[str, i
allocated += impl(bsym, tensor_to_memory_data, name_to_alloc_memory)
if annotate:
if bsym.header:
bsym.header += ' '
bsym.header += f'mem after next op: ~{allocated/(2**30):2f}GB'
bsym.header += " "
bsym.header += f"mem after next op: ~{allocated/(2**30):2f}GB"
max_allocated = max(max_allocated, allocated)

return max_allocated, name_to_alloc_memory

0 comments on commit ebf420c

Please sign in to comment.