Skip to content

Commit

Permalink
Fix memory conversion (ultralytics#19256)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Yasin <[email protected]>
  • Loading branch information
Y-T-G authored Feb 17, 2025
1 parent 454f4d5 commit 4d30f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ultralytics/engine/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def _get_memory(self):
memory = 0
else:
memory = torch.cuda.memory_reserved()
return memory >> (2**30)
return memory / (2**30)

def _clear_memory(self):
"""Clear accelerator memory on different platforms."""
Expand Down

0 comments on commit 4d30f14

Please sign in to comment.