Forward pass. Args: x (tensor): input Returns: tensor: interpolated data
(self, x)
| 136 | self.align_corners = align_corners |
| 137 | |
| 138 | def forward(self, x): |
| 139 | """Forward pass. |
| 140 | |
| 141 | Args: |
| 142 | x (tensor): input |
| 143 | |
| 144 | Returns: |
| 145 | tensor: interpolated data |
| 146 | """ |
| 147 | |
| 148 | x = self.interp( |
| 149 | x, scale_factor=self.scale_factor, mode=self.mode, align_corners=self.align_corners |
| 150 | ) |
| 151 | |
| 152 | return x |
| 153 | |
| 154 | |
| 155 | class ResidualConvUnit(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected