Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CVCUDA/CV-CUDA
/ set_default_cache_limit
Function
set_default_cache_limit
samples/object_cache/control_torch.py:23–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
22
23
def
set_default_cache_limit() -> None:
24
# Set the cache limit (in bytes)
25
total_mem = torch.cuda.mem_get_info()[1]
26
cvcuda.set_cache_limit_inbytes(total_mem // 2)
27
28
29
# docs-end: default
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected