We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acb8397 commit 39994ccCopy full SHA for 39994cc
src/diffusers/models/embeddings.py
@@ -35,7 +35,7 @@ def get_timestep_embedding(
35
exponent = -math.log(max_period) * torch.arange(start=0, end=half_dim, dtype=torch.float32, device=timesteps.device)
36
exponent = exponent / (half_dim - downscale_freq_shift)
37
38
- emb = torch.exp(exponent).to(device=timesteps.device, non_blocking=True)
+ emb = torch.exp(exponent)
39
emb = timesteps[:, None].float() * emb[None, :]
40
41
# scale embeddings
0 commit comments