MCPcopy Create free account
hub / github.com/pytorch/pytorch / f

Method f

test/test_proxy_tensor.py:151–153  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

149
150 def test_pre_dispatch_mode_stack(self):
151 def f(a):
152 b = torch.ones(4, 4)
153 return torch.matmul(a, b)
154 # We expect to see matmul in the trace - it should NOT be decomposed into mm.
155 # Also, torch.ones() doesn't show up in the trace.
156 # This is annoying but expected: ones() never dispatches to the Autograd dispatch key,

Callers

nothing calls this directly

Calls 15

get_isolated_graphmoduleFunction · 0.90
listFunction · 0.85
isinstanceFunction · 0.85
itemMethod · 0.80
sumFunction · 0.50
onesMethod · 0.45
matmulMethod · 0.45
linearMethod · 0.45
sinMethod · 0.45
cosMethod · 0.45
randnMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected