Skip to content

Commit

Permalink
fix: redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhrozz authored Nov 18, 2023
1 parent 4e54dfe commit bd81f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diffusers/models/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ def forward(
hidden_states = self.norm2(hidden_states)

if temb is not None and self.time_embedding_norm == "scale_shift":
scale, shift = torch.chunk(temb, 2, dim=1)
hidden_states = hidden_states * (1 + scale) + shift
_scale, _shift = torch.chunk(temb, 2, dim=1)
hidden_states = hidden_states * (1 + _scale) + _shift

hidden_states = self.nonlinearity(hidden_states)

Expand Down

0 comments on commit bd81f75

Please sign in to comment.