Forward pass.
(self, x: SparseConvTensor)
| 368 | self.act3 = build_activation_layer(act_cfg) |
| 369 | |
| 370 | def forward(self, x: SparseConvTensor) -> SparseConvTensor: |
| 371 | """Forward pass.""" |
| 372 | shortcut = self.conv1(x) |
| 373 | shortcut.features = self.bn1(shortcut.features) |
| 374 | shortcut.features = self.act1(shortcut.features) |
| 375 | |
| 376 | shortcut2 = self.conv2(x) |
| 377 | shortcut2.features = self.bn2(shortcut2.features) |
| 378 | shortcut2.features = self.act2(shortcut2.features) |
| 379 | |
| 380 | shortcut3 = self.conv3(x) |
| 381 | shortcut3.features = self.bn3(shortcut3.features) |
| 382 | shortcut3.features = self.act3(shortcut3.features) |
| 383 | shortcut.features = shortcut.features + \ |
| 384 | shortcut2.features + shortcut3.features |
| 385 | |
| 386 | shortcut.features = shortcut.features * x.features |
| 387 | |
| 388 | return shortcut |
| 389 | |
| 390 | |
| 391 | @MODELS.register_module(force=True) |
nothing calls this directly
no outgoing calls
no test coverage detected