(self, x, c)
| 246 | ) |
| 247 | |
| 248 | def forward(self, x, c): |
| 249 | shift, scale = self.adaLN_modulation(c).chunk(2, dim=1) |
| 250 | x = modulate(self.norm_final(x), shift, scale) |
| 251 | x = self.linear(x) |
| 252 | return x |
| 253 | |
| 254 | |
| 255 | def get_2d_sincos_pos_embed(embed_dim, grid_size, cls_token=False, extra_tokens=0, interpolation_scale=1.0, base_size=1): |
nothing calls this directly
no test coverage detected