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

Method f

test/test_proxy_tensor.py:774–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772 x = nn.Parameter(torch.randn(3, 3))
773
774 def f():
775 return torch.ops.aten.t.default(x)
776 self.assertRaisesRegex(Exception, "Please convert all Tensors", lambda: make_fx(f, tracing_mode="fake")())
777
778 class A(torch.Tensor):

Callers

nothing calls this directly

Calls 4

defaultMethod · 0.80
tensorMethod · 0.45
addMethod · 0.45
cosMethod · 0.45

Tested by

no test coverage detected