(self, timesteps)
| 245 | self.downscale_freq_shift = downscale_freq_shift |
| 246 | |
| 247 | def forward(self, timesteps): |
| 248 | t_emb = get_timestep_embedding( |
| 249 | timesteps, |
| 250 | self.num_channels, |
| 251 | flip_sin_to_cos=self.flip_sin_to_cos, |
| 252 | downscale_freq_shift=self.downscale_freq_shift, |
| 253 | ) |
| 254 | return t_emb |
| 255 | |
| 256 | |
| 257 | class GaussianFourierProjection(nn.Module): |
nothing calls this directly
no test coverage detected