[core] add torch compile for diffusion (#684)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
Jiangyun Zhu authored and GitHub committed 2026-01-09 04:05:44 +13:00
1 parent cddcc400d3
commit c784b3e07d
15 files changed
+134 -25

No files matched your search

@@ -515,6 +515,8 @@ class WanTransformer3DModel(nn.Module):
pos_embed_seq_len: Optional position embedding sequence length
"""
_repeated_blocks = ["WanTransformerBlock"]
def __init__(
self,
patch_size: tuple[int, int, int] = (1, 2, 2),