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

Method __init__

intermediate_source/neural_tangent_kernels.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class CNN(nn.Module):
35 def __init__(self):
36 super(CNN, self).__init__()
37 self.conv1 = nn.Conv2d(3, 32, (3, 3))
38 self.conv2 = nn.Conv2d(32, 32, (3, 3))
39 self.conv3 = nn.Conv2d(32, 32, (3, 3))
40 self.fc = nn.Linear(21632, 10)
41
42 def forward(self, x):
43 x = self.conv1(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected