Skip to content

Commit

Permalink
Change min max gpu memory to be on their own plots (Lightning-AI#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
tullie authored and akarnachev committed Apr 4, 2020
1 parent c2c88f5 commit 1f10248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/core/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_memory_profile(mode: str) -> Union[Dict[str, int], Dict[int, int]]:
min_index, min_memory = min(memory_map.items(), key=lambda item: item[1])
max_index, max_memory = max(memory_map.items(), key=lambda item: item[1])

memory_map = {min_index: min_memory, max_index: max_memory}
memory_map = {'min_gpu_mem': min_memory, 'max_gpu_mem': max_memory}

return memory_map

Expand Down

0 comments on commit 1f10248

Please sign in to comment.