(self, x)
| 48 | self.stride = stride |
| 49 | |
| 50 | def forward(self, x): |
| 51 | identity = x |
| 52 | |
| 53 | out = self.conv1(x) |
| 54 | out = replace_feature(out, self.bn1(out.features)) |
| 55 | out = replace_feature(out, self.relu(out.features)) |
| 56 | |
| 57 | out = self.conv2(out) |
| 58 | out = replace_feature(out, self.bn2(out.features)) |
| 59 | |
| 60 | if self.downsample is not None: |
| 61 | identity = self.downsample(x) |
| 62 | |
| 63 | out = replace_feature(out, out.features + identity.features) |
| 64 | out = replace_feature(out, self.relu(out.features)) |
| 65 | |
| 66 | return out |
| 67 | |
| 68 | |
| 69 | class VoxelBackBone8x(nn.Module): |
nothing calls this directly
no test coverage detected