mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
Make tensors in ResNet contiguous for Hunyuan VAE (#10309)
contiguous tensors in resnet Co-authored-by: YiYi Xu <yixu310@gmail.com>
This commit is contained in:
@@ -168,6 +168,7 @@ class HunyuanVideoResnetBlockCausal3D(nn.Module):
|
||||
self.conv_shortcut = HunyuanVideoCausalConv3d(in_channels, out_channels, 1, 1, 0)
|
||||
|
||||
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
||||
hidden_states = hidden_states.contiguous()
|
||||
residual = hidden_states
|
||||
|
||||
hidden_states = self.norm1(hidden_states)
|
||||
|
||||
Reference in New Issue
Block a user