Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
natolambert committed Oct 12, 2022
1 parent 95d3a1c commit 6cbb73b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/diffusers/models/unet_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ def forward(
sample = self.final_conv1d_act(sample)
sample = self.final_conv1d_2(sample)


if not return_dict:
return (sample,)

Expand Down
5 changes: 3 additions & 2 deletions tests/test_models_unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import gc
import math
import pdb
import tracemalloc
import unittest

Expand Down Expand Up @@ -508,7 +507,9 @@ def test_output_pretrained(self):

num_features = model.in_channels
seq_len = 16
noise = torch.randn((1, seq_len, num_features)).permute(0, 2, 1) # match original, we can update values and remove
noise = torch.randn((1, seq_len, num_features)).permute(
0, 2, 1
) # match original, we can update values and remove
time_step = torch.full((num_features,), 0)

with torch.no_grad():
Expand Down

0 comments on commit 6cbb73b

Please sign in to comment.