(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)
| 1364 | |
| 1365 | class Timesteps(nn.Module): |
| 1366 | def __init__(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1): |
| 1367 | super().__init__() |
| 1368 | self.num_channels = num_channels |
| 1369 | self.flip_sin_to_cos = flip_sin_to_cos |
| 1370 | self.downscale_freq_shift = downscale_freq_shift |
| 1371 | self.scale = scale |
| 1372 | |
| 1373 | def forward(self, timesteps): |
| 1374 | t_emb = get_timestep_embedding( |
no outgoing calls
no test coverage detected