MCPcopy 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
581def warmup(model, inputs, N=10):
582 for i in range(N):
583 out = model(inputs)
584 torch.cuda.synchronize()
585
586
587def measure_time(model, inputs, N=10):

Callers 1

measure_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected