mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
Submodule extensions-builtin/sd-extension-system-info updated: 5267e32649...6a2a28a4f6
+1
-1
@@ -210,7 +210,7 @@ def torch_gc(force=False, fast=False):
|
||||
if 'gc' not in timer.process.records:
|
||||
timer.process.records['gc'] = 0
|
||||
timer.process.records['gc'] += t1 - t0
|
||||
if not force:
|
||||
if not force or collected == 0:
|
||||
return
|
||||
mem = memstats.memory_stats()
|
||||
saved = round(gpu.get('used', 0) - mem.get('gpu', {}).get('used', 0), 2)
|
||||
|
||||
Reference in New Issue
Block a user