Skip to content

Commit fc7ad39

Browse files
committed
contiguous tensors in resnet
1 parent d8825e7 commit fc7ad39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def __init__(
168168
self.conv_shortcut = HunyuanVideoCausalConv3d(in_channels, out_channels, 1, 1, 0)
169169

170170
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
171+
hidden_states = hidden_states.contiguous()
171172
residual = hidden_states
172173

173174
hidden_states = self.norm1(hidden_states)

0 commit comments

Comments
 (0)