r""" This method takes input tensor x and applies a convolutional layer, ReLU activation, and another convolutional layer on the input tensor. It returns addition with the input tensor.
(self, x: torch.Tensor)
| 452 | self.block2 = nn.Conv2d(channels, channels, kernel_size=1) |
| 453 | |
| 454 | def forward(self, x: torch.Tensor) -> torch.Tensor: |
| 455 | r""" |
| 456 | This method takes input tensor x and applies a convolutional layer, ReLU activation, and another convolutional |
| 457 | layer on the input tensor. It returns addition with the input tensor. |
| 458 | """ |
| 459 | |
| 460 | h = self.act(self.block1(x)) |
| 461 | h = self.block2(h) |
| 462 | |
| 463 | return h + x |
| 464 | |
| 465 | |
| 466 | # light adapter |
nothing calls this directly
no outgoing calls
no test coverage detected