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