Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files
mod.py
CHANGED
|
@@ -78,7 +78,7 @@ def clear_cache():
|
|
| 78 |
try:
|
| 79 |
torch.cuda.empty_cache()
|
| 80 |
#torch.cuda.reset_max_memory_allocated()
|
| 81 |
-
torch.cuda.reset_peak_memory_stats()
|
| 82 |
gc.collect()
|
| 83 |
except Exception as e:
|
| 84 |
print(e)
|
|
|
|
| 78 |
try:
|
| 79 |
torch.cuda.empty_cache()
|
| 80 |
#torch.cuda.reset_max_memory_allocated()
|
| 81 |
+
#torch.cuda.reset_peak_memory_stats()
|
| 82 |
gc.collect()
|
| 83 |
except Exception as e:
|
| 84 |
print(e)
|