John6666 commited on
Commit
236f9f8
1 Parent(s): a121a5b

Upload mod.py

Browse files
Files changed (1) hide show
  1. mod.py +1 -1
mod.py CHANGED
@@ -76,7 +76,7 @@ def is_repo_exists(repo_id):
76
  def clear_cache():
77
  try:
78
  torch.cuda.empty_cache()
79
- torch.cuda.reset_max_memory_allocated()
80
  torch.cuda.reset_peak_memory_stats()
81
  gc.collect()
82
  except Exception as e:
 
76
  def clear_cache():
77
  try:
78
  torch.cuda.empty_cache()
79
+ #torch.cuda.reset_max_memory_allocated()
80
  torch.cuda.reset_peak_memory_stats()
81
  gc.collect()
82
  except Exception as e: