Skip to content

Commit 100e094

Browse files
authored
Fix autoencoder test (huggingface#886)
Fix autoencoder test.
1 parent cca59ce commit 100e094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_models_vae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_output_pretrained(self):
9696
model.config.in_channels,
9797
model.config.sample_size,
9898
model.config.sample_size,
99-
generator=generator,
99+
generator=torch.manual_seed(0),
100100
)
101101
image = image.to(torch_device)
102102
with torch.no_grad():

0 commit comments

Comments
 (0)