1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00
This commit is contained in:
Edna
2025-06-11 19:54:27 -06:00
committed by GitHub
parent f783f38883
commit f6de1afc3f

View File

@@ -1665,8 +1665,7 @@ class CombinedTimestepTextProjChromaEmbeddings(nn.Module):
torch.cat([timesteps_proj, guidance_proj], dim=1).repeat(1, mod_index_length, 1)
)
input_vec = torch.cat([timestep_guidance, mod_proj], dim=-1)
input_vec.to(dtype=timestep.dtype)
return input_vec
return input_vec.to(dtype=timestep.dtype)
class CogView3CombinedTimestepSizeEmbeddings(nn.Module):
def __init__(self, embedding_dim: int, condition_dim: int, pooled_projection_dim: int, timesteps_dim: int = 256):