(self, x)
| 100 | # self.init_weights(init_method) |
| 101 | |
| 102 | def forward(self, x): |
| 103 | y = self.conv(x) |
| 104 | if self.stride == 2: |
| 105 | h, w = list(x.size())[2:] |
| 106 | y = y[:, :, :2 * h, :2 * w].contiguous() |
| 107 | if self.bn is not None: |
| 108 | x = self.bn(y) |
| 109 | if self.relu: |
| 110 | x = F.relu(x, inplace=True) |
| 111 | return x |
| 112 | |
| 113 | def init_weights(self, init_method): |
| 114 | """default initialization""" |
nothing calls this directly
no outgoing calls
no test coverage detected