Skip to content
Snippets Groups Projects
Commit d554d437 authored by Zhengxiao Du's avatar Zhengxiao Du
Browse files

Fix report memory in utils.py

parent f455c777
No related branches found
No related tags found
No related merge requests found
......@@ -126,8 +126,8 @@ def report_memory(name):
torch.cuda.memory_allocated() / mega_bytes)
string += ' | max allocated: {}'.format(
torch.cuda.max_memory_allocated() / mega_bytes)
string += ' | cached: {}'.format(torch.cuda.memory_cached() / mega_bytes)
string += ' | cached: {}'.format(torch.cuda.memory_reserved() / mega_bytes)
string += ' | max cached: {}'.format(
torch.cuda.memory_reserved() / mega_bytes)
torch.cuda.max_memory_reserved() / mega_bytes)
print_rank_0(string)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment