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:255–258 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
253
254
class
Bar(torch.nn.Module):
255
def
__init__(self):
256
super().__init__()
257
self.abc = Foo()
258
self.xyz = torch.nn.Linear(4, 4)
259
260
def
forward(self, x):
261
return
self.xyz(self.abc(x))
Callers
nothing calls this directly
Calls
2
Foo
Class · 0.70
__init__
Method · 0.45
Tested by
no test coverage detected