MCPcopy 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
254class 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

FooClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected