Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ forward
Method
forward
intermediate_source/torch_export_tutorial.py:130–132 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
128
129
class
Bad2(torch.nn.Module):
130
def
forward(self, x):
131
x.data[0, 0] = 3
132
return
x
133
134
try
:
135
export(Bad2(), (torch.randn(3, 3),))
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected