Skip to content

Commit fccab99

Browse files
Fix issue with .view() in HuMo. (#10014)
1 parent fd79d32 commit fccab99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/ldm/wan/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ def forward(self, x, context, transformer_options={}, **kwargs):
13551355

13561356
x = optimized_attention(q, k, v, heads=self.num_heads, skip_reshape=True, skip_output_reshape=True, transformer_options=transformer_options)
13571357

1358-
x = x.transpose(1, 2).view(b, -1, n, d).flatten(2)
1358+
x = x.transpose(1, 2).reshape(b, -1, n * d)
13591359
x = self.o(x)
13601360
return x
13611361

0 commit comments

Comments
 (0)