John6666 commited on
Commit
245e508
1 Parent(s): e3b569b

Upload 2 files

Browse files
Files changed (1) hide show
  1. mod.py +1 -1
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)