mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-29 13:30:57 +08:00
Change min max gpu memory to be on their own plots (#1358)
This commit is contained in:
1 parent
003ca510fa
commit
b31edf37bf
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user