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

Method __init__

intermediate_source/torch_export_tutorial.py:257–259  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

255
256class DynamicModel(torch.nn.Module):
257 def __init__(self):
258 super().__init__()
259 self.l = torch.nn.Linear(5, 3)
260
261 def forward(
262 self,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected