Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/huggingface/diffusers
/ backend_empty_cache
Function
backend_empty_cache
tests/testing_utils.py:1514–1515 ·
view source on GitHub ↗
(device: str)
Source
from the content-addressed store, hash-verified
1512
1513
1514
def
backend_empty_cache(device: str):
1515
return
_device_agnostic_dispatch(device, BACKEND_EMPTY_CACHE)
1516
1517
1518
def
backend_device_count(device: str):
Callers
15
setUp
Method · 0.90
tearDown
Method · 0.90
setUp
Method · 0.50
tearDown
Method · 0.50
get_memory_consumption_stat
Function · 0.50
setUp
Method · 0.50
tearDown
Method · 0.50
setUp
Method · 0.50
tearDown
Method · 0.50
setUp
Method · 0.50
setUp
Method · 0.50
tearDown
Method · 0.50
Calls
1
_device_agnostic_dispatch
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…