Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IDEA-Research/DINO
/ warmup
Function
warmup
tools/benchmark.py:581–584 ·
view source on GitHub ↗
(model, inputs, N=10)
Source
from the content-addressed store, hash-verified
579
580
581
def
warmup(model, inputs, N=10):
582
for
i in range(N):
583
out = model(inputs)
584
torch.cuda.synchronize()
585
586
587
def
measure_time(model, inputs, N=10):
Callers
1
measure_time
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected