(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)
| 764 | |
| 765 | class Timesteps(nn.Module): |
| 766 | def __init__(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1): |
| 767 | super().__init__() |
| 768 | self.num_channels = num_channels |
| 769 | self.flip_sin_to_cos = flip_sin_to_cos |
| 770 | self.downscale_freq_shift = downscale_freq_shift |
| 771 | self.scale = scale |
| 772 | |
| 773 | def forward(self, timesteps): |
| 774 | t_emb = get_timestep_embedding( |
no outgoing calls
no test coverage detected