(self, x)
| 24 | self.fc1 = nn.Linear(config.channels_two*4*4, 10) |
| 25 | |
| 26 | def forward(self, x): |
| 27 | # Convolution 1 |
| 28 | out = self.cnn1(x) |
| 29 | out = self.relu1(out) |
| 30 | |
| 31 | # Max pool 1 |
| 32 | out = self.maxpool1(out) |
| 33 | |
| 34 | # Convolution 2 |
| 35 | out = self.cnn2(out) |
| 36 | out = self.relu2(out) |
| 37 | |
| 38 | # Max pool 2 |
| 39 | out = self.maxpool2(out) |
| 40 | |
| 41 | # Resize |
| 42 | # Original size: (100, 32, 7, 7) |
| 43 | # out.size(0): 100 |
| 44 | # New out size: (100, 32*7*7) |
| 45 | out = out.view(out.size(0), -1) |
| 46 | out = self.dropout(out) |
| 47 | # Linear function (readout) |
| 48 | out = self.fc1(out) |
| 49 | |
| 50 | return out |
nothing calls this directly
no outgoing calls
no test coverage detected