Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ __init__
Method
__init__
recipes_source/debug_mode_tutorial.py:246–249 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
244
245
class
Foo(torch.nn.Module):
246
def
__init__(self):
247
super().__init__()
248
self.l1 = torch.nn.Linear(4, 4)
249
self.l2 = torch.nn.Linear(4, 4)
250
251
def
forward(self, x):
252
return
self.l2(self.l1(x))
Callers
1
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected