Skip to content

Commit 39994cc

Browse files
committed
fix merging
1 parent acb8397 commit 39994cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/embeddings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_timestep_embedding(
3535
exponent = -math.log(max_period) * torch.arange(start=0, end=half_dim, dtype=torch.float32, device=timesteps.device)
3636
exponent = exponent / (half_dim - downscale_freq_shift)
3737

38-
emb = torch.exp(exponent).to(device=timesteps.device, non_blocking=True)
38+
emb = torch.exp(exponent)
3939
emb = timesteps[:, None].float() * emb[None, :]
4040

4141
# scale embeddings

0 commit comments

Comments
 (0)