Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
default
Method · 0.80
tensor
Method · 0.45
add
Method · 0.45
cos
Method · 0.45
Tested by
no test coverage detected