MCPcopy Index your code
hub / github.com/huggingface/diffusers / __init__

Method __init__

src/diffusers/models/embeddings.py:1310–1315  ·  view source on GitHub ↗
(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)

Source from the content-addressed store, hash-verified

1308
1309class Timesteps(nn.Module):
1310 def __init__(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1):
1311 super().__init__()
1312 self.num_channels = num_channels
1313 self.flip_sin_to_cos = flip_sin_to_cos
1314 self.downscale_freq_shift = downscale_freq_shift
1315 self.scale = scale
1316
1317 def forward(self, timesteps: torch.Tensor) -> torch.Tensor:
1318 t_emb = get_timestep_embedding(

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected