Skip to content

Commit f7fb73e

Browse files
committed
test_add_noise_device
1 parent 58b6081 commit f7fb73e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/schedulers/test_schedulers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ def test_add_noise_device(self):
722722
scaled_sample = scheduler.scale_model_input(sample, 0.0)
723723
self.assertEqual(sample.shape, scaled_sample.shape)
724724

725-
# noise = torch.randn_like(scaled_sample).to(torch_device)
726-
# t = scheduler.timesteps[5][None]
725+
noise = torch.randn_like(scaled_sample).to(torch_device)
726+
t = scheduler.timesteps[5][None]
727727
# noised = scheduler.add_noise(scaled_sample, noise, t)
728728
# self.assertEqual(noised.shape, scaled_sample.shape)
729729

0 commit comments

Comments
 (0)