Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/BrushNet
/ flush
Function
flush
benchmarks/utils.py:40–45 ·
view source on GitHub ↗
Wipes off memory.
()
Source
from the content-addressed store, hash-verified
38
39
40
def
flush():
41
""
"Wipes off memory."
""
42
gc.collect()
43
torch.cuda.empty_cache()
44
torch.cuda.reset_max_memory_allocated()
45
torch.cuda.reset_peak_memory_stats()
46
47
48
def
bytes_to_giga_bytes(bytes):
Callers
2
benchmark
Method · 0.90
benchmark
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected