Forward pass. Args: x (tensor): input Returns: tensor: interpolated data
(self, x)
| 227 | self.align_corners = align_corners |
| 228 | |
| 229 | def forward(self, x): |
| 230 | """Forward pass. |
| 231 | |
| 232 | Args: |
| 233 | x (tensor): input |
| 234 | |
| 235 | Returns: |
| 236 | tensor: interpolated data |
| 237 | """ |
| 238 | |
| 239 | x = self.interp( |
| 240 | x, scale_factor=self.scale_factor, mode=self.mode, align_corners=self.align_corners |
| 241 | ) |
| 242 | |
| 243 | return x |
| 244 | |
| 245 | |
| 246 | class ResidualConvUnit(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected