Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBitSys/BitDistiller
/ device_warmup
Function
device_warmup
inference/utils/tune.py:10–13 ·
view source on GitHub ↗
(device: str)
Source
from the content-addressed store, hash-verified
8
9
10
def
device_warmup(device: str):
11
warm_up = torch.randn((4096, 4096)).to(device)
12
for
i in range(100):
13
torch.mm(warm_up, warm_up)
14
15
16
def
_time_module(module, inputs, measure_iters=1000):
Callers
1
tune_wqlinear
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected