Skip to content

Commit 7b2db56

Browse files
authored
Update autoencoder_kl_cosmos.py
1 parent 7ae6347 commit 7b2db56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/autoencoders/autoencoder_kl_cosmos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _arrange(self, hidden_states: torch.Tensor) -> torch.Tensor:
168168
batch_size, num_channels, num_frames, height, width = hidden_states.shape
169169
p = self.patch_size
170170

171-
hidden_states = torch.reshape(batch_size, num_channels, num_frames // p, p, height // p, p, width // p, p)
171+
hidden_states = hidden_states.reshape(batch_size, num_channels, num_frames // p, p, height // p, p, width // p, p)
172172
hidden_states = hidden_states.permute(0, 1, 3, 5, 7, 2, 4, 6).flatten(1, 4).contiguous()
173173
return hidden_states
174174

0 commit comments

Comments
 (0)