r""" This function takes input tensor x and processes it through one convolutional layer, ReLU activation, and another convolutional layer and adds it to input tensor.
(self, x: torch.Tensor)
| 573 | self.block2 = nn.Conv2d(channels, channels, kernel_size=3, padding=1) |
| 574 | |
| 575 | def forward(self, x: torch.Tensor) -> torch.Tensor: |
| 576 | r""" |
| 577 | This function takes input tensor x and processes it through one convolutional layer, ReLU activation, and |
| 578 | another convolutional layer and adds it to input tensor. |
| 579 | """ |
| 580 | |
| 581 | h = self.act(self.block1(x)) |
| 582 | h = self.block2(h) |
| 583 | |
| 584 | return h + x |
nothing calls this directly
no outgoing calls
no test coverage detected