Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdrussell/diffusion-pipe
/ empty_cuda_cache
Function
empty_cuda_cache
utils/common.py:54–56 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
52
53
54
def
empty_cuda_cache():
55
gc.collect()
56
torch.cuda.empty_cache()
57
58
59
@contextmanager
Callers
3
evaluate
Function · 0.90
train.py
File · 0.90
load_diffusion_model
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected