Skip to content

Commit

Permalink
test_add_noise_device
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky committed Jan 8, 2025
1 parent 58b6081 commit f7fb73e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/schedulers/test_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ def test_add_noise_device(self):
scaled_sample = scheduler.scale_model_input(sample, 0.0)
self.assertEqual(sample.shape, scaled_sample.shape)

# noise = torch.randn_like(scaled_sample).to(torch_device)
# t = scheduler.timesteps[5][None]
noise = torch.randn_like(scaled_sample).to(torch_device)
t = scheduler.timesteps[5][None]
# noised = scheduler.add_noise(scaled_sample, noise, t)
# self.assertEqual(noised.shape, scaled_sample.shape)

Expand Down

0 comments on commit f7fb73e

Please sign in to comment.