8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7ba99 commit 0e485acCopy full SHA for 0e485ac
GAN/WGAN/general.py
@@ -120,7 +120,8 @@ def print_memory_utilization(GPU_INDEX=0):
120
r = torch.cuda.memory_reserved(GPU_INDEX)
121
a = torch.cuda.memory_allocated(GPU_INDEX)
122
f = r-a # free inside reserved
123
- print(f"total Memory: {t:.4f} available: {f:.4f}")
+ print(f"Total: {t/1e9:.2f}GB| Reservered: {r/1e9:.2f}GB|"
124
+ + f"Allocated: {a/1e9:.2f}GB| available: {f/1e9:.2f}GB")
125
126
127
# ~~~~~~~~~~~~~~~~~~~~~ network helper functions ~~~~~~~~~~~~~~~~~~~~~ #
0 commit comments