"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "0b2c5ba2961fda0b916a4a6ed8f0a1d611af506a"
Commit 499641eb authored by space-nuko's avatar space-nuko
Browse files

More accurate total

parent b5dd15c6
......@@ -328,7 +328,7 @@ def get_total_memory(dev=None, torch_total_too=False):
mem_reserved = stats['reserved_bytes.all.current']
_, mem_total_cuda = torch.cuda.mem_get_info(dev)
mem_total_torch = mem_reserved
mem_total = mem_total_cuda + mem_total_torch
mem_total = mem_total_cuda
if torch_total_too:
return (mem_total, mem_total_torch)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment