Skip to content

Commit f18cf1a

Browse files
committed
fix comment
1 parent 7f4edfb commit f18cf1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/transformers/transformer_ltx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def custom_forward(*inputs):
442442

443443
def apply_rotary_emb(x, freqs):
444444
cos, sin = freqs
445-
x_real, x_imag = x.unflatten(2, (-1, 2)).unbind(-1) # [B, S, D // 2, 2]
445+
x_real, x_imag = x.unflatten(2, (-1, 2)).unbind(-1) # [B, S, H, D // 2]
446446
x_rotated = torch.stack([-x_imag, x_real], dim=-1).flatten(2)
447447
out = (x.float() * cos + x_rotated.float() * sin).to(x.dtype)
448448
return out

0 commit comments

Comments
 (0)