1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

fix merging

This commit is contained in:
Nouamane Tazi
2022-09-13 20:58:02 +00:00
parent acb8397e22
commit 39994ccf26

View File

@@ -35,7 +35,7 @@ def get_timestep_embedding(
exponent = -math.log(max_period) * torch.arange(start=0, end=half_dim, dtype=torch.float32, device=timesteps.device)
exponent = exponent / (half_dim - downscale_freq_shift)
emb = torch.exp(exponent).to(device=timesteps.device, non_blocking=True)
emb = torch.exp(exponent)
emb = timesteps[:, None].float() * emb[None, :]
# scale embeddings