r""" This method takes the tensor x as input and processes it through FullAdapterXL model. It consists of operations including unshuffling pixels, applying convolution layer and appending each block into list of feature tensors.
(self, x: torch.Tensor)
| 372 | self.total_downscale_factor = downscale_factor * 2 |
| 373 | |
| 374 | def forward(self, x: torch.Tensor) -> List[torch.Tensor]: |
| 375 | r""" |
| 376 | This method takes the tensor x as input and processes it through FullAdapterXL model. It consists of operations |
| 377 | including unshuffling pixels, applying convolution layer and appending each block into list of feature tensors. |
| 378 | """ |
| 379 | x = self.unshuffle(x) |
| 380 | x = self.conv_in(x) |
| 381 | |
| 382 | features = [] |
| 383 | |
| 384 | for block in self.body: |
| 385 | x = block(x) |
| 386 | features.append(x) |
| 387 | |
| 388 | return features |
| 389 | |
| 390 | |
| 391 | class AdapterBlock(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected