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

Method __init__

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

Source from the content-addressed store, hash-verified

963
964class M(torch.nn.Module):
965 def __init__(self):
966 super().__init__()
967 self.linear = torch.nn.Linear(3, 3)
968
969 def forward(self, x):
970 x = self.linear(x)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected