Fix issue with .view() in HuMo. (#10014)

This commit is contained in:
comfyanonymous 2025-09-24 17:09:42 -07:00 committed by GitHub
parent fd79d32f38
commit fccab99ec0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1355,7 +1355,7 @@ class WanT2VCrossAttentionGather(WanSelfAttention):
x = optimized_attention(q, k, v, heads=self.num_heads, skip_reshape=True, skip_output_reshape=True, transformer_options=transformer_options) x = optimized_attention(q, k, v, heads=self.num_heads, skip_reshape=True, skip_output_reshape=True, transformer_options=transformer_options)
x = x.transpose(1, 2).view(b, -1, n, d).flatten(2) x = x.transpose(1, 2).reshape(b, -1, n * d)
x = self.o(x) x = self.o(x)
return x return x