MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / run

Function run

tests/unit/utils/test_timer.py:24–26  ·  view source on GitHub ↗
(num_matmuls)

Source from the content-addressed store, hash-verified

22 y = torch.empty_like(x)
23
24 def run(num_matmuls):
25 for _ in range(num_matmuls):
26 torch.mm(x, x, out=y)
27
28 return run
29

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected