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

Method __init__

recipes_source/regional_compilation.py:65–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63#
64class Layer(torch.nn.Module):
65 def __init__(self):
66 super().__init__()
67 self.linear1 = torch.nn.Linear(10, 10)
68 self.relu1 = torch.nn.ReLU()
69 self.linear2 = torch.nn.Linear(10, 10)
70 self.relu2 = torch.nn.ReLU()
71
72 def forward(self, x):
73 a = self.linear1(x)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected