MCPcopy Create free account
hub / github.com/pytorch/tutorials / Bar

Class Bar

recipes_source/debug_mode_tutorial.py:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 return self.l2(self.l1(x))
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))
262
263mod = Bar()
264inp = torch.randn(4, 4)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected