Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ Toy
Class
Toy
recipes_source/debug_mode_tutorial.py:149–151 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
147
return
dm, dm_out
148
149
class
Toy(torch.nn.Module):
150
def
forward(self, x):
151
return
torch.relu(x).mm(x.T)
152
153
inputs = (torch.randn(4, 4),)
154
dm_eager, _ = run_model(Toy(), inputs)
Callers
1
debug_mode_tutorial.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected