(self, hidden_states: torch.FloatTensor)
| 318 | return output |
| 319 | |
| 320 | def forward(self, hidden_states: torch.FloatTensor) -> torch.FloatTensor: |
| 321 | if self.use_conv: |
| 322 | height = self._upsample_2d(hidden_states, self.Conv2d_0.weight, kernel=self.fir_kernel) |
| 323 | height = height + self.Conv2d_0.bias.reshape(1, -1, 1, 1) |
| 324 | else: |
| 325 | height = self._upsample_2d(hidden_states, kernel=self.fir_kernel, factor=2) |
| 326 | |
| 327 | return height |
| 328 | |
| 329 | |
| 330 | class KUpsample2D(nn.Module): |
nothing calls this directly
no test coverage detected