Skip to content

Commit

Permalink
Fix group norm L1 OOM error in Stable Diffusion
Browse files Browse the repository at this point in the history
  • Loading branch information
esmalTT committed Dec 5, 2024
1 parent 6996c9a commit 35b20db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ def __call__(
hidden_states = ttnn.reshape(
hidden_states, (self.batch_size, 1, self.conv2_input_height * self.conv2_input_width, in_channels)
)
hidden_states = ttnn.reallocate(hidden_states)

hidden_states = ttnn.group_norm(
hidden_states,
num_groups=groups,
Expand Down

0 comments on commit 35b20db

Please sign in to comment.