[core] add torch compile for diffusion (#684)
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
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),
|
||||
|
||||
Reference in new issue
Block a user