Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def __init__(self, in_dim, out_dim, dropout, num_res_blocks, temperal_downsample
def forward(self, x, feat_cache=None, feat_idx=None) -> torch.Tensor:
if feat_idx is None:
feat_idx = [0]
x_copy = x.clone()
x_copy = x
for resnet in self.resnets:
x = resnet(x, feat_cache=feat_cache, feat_idx=feat_idx)
if self.downsampler is not None:
Expand Down Expand Up @@ -714,7 +714,7 @@ def forward(self, x, feat_cache=None, feat_idx=None, first_chunk=False) -> torch
Returns:
torch.Tensor: Output tensor
"""
x_copy = x.clone()
x_copy = x

for resnet in self.resnets:
if feat_cache is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/diffusers/models/autoencoders/autoencoder_kl_wan.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def __init__(self, in_dim, out_dim, dropout, num_res_blocks, temperal_downsample
self.downsampler = None

def forward(self, x, feat_cache=None, feat_idx=[0]) -> torch.Tensor:
x_copy = x.clone()
x_copy = x
for resnet in self.resnets:
x = resnet(x, feat_cache=feat_cache, feat_idx=feat_idx)
if self.downsampler is not None:
Expand Down Expand Up @@ -700,7 +700,7 @@ def forward(self, x, feat_cache=None, feat_idx=[0], first_chunk=False) -> torch.
Returns:
torch.Tensor: Output tensor
"""
x_copy = x.clone()
x_copy = x

for resnet in self.resnets:
if feat_cache is not None:
Expand Down
Loading