Unverified Commit 9ef43f38 authored by Dhruv Nair's avatar Dhruv Nair Committed by GitHub
Browse files

Fix test for consistency decoder. (#7746)

update
parent 88018fcf
...@@ -1153,5 +1153,5 @@ class ConsistencyDecoderVAEIntegrationTests(unittest.TestCase): ...@@ -1153,5 +1153,5 @@ class ConsistencyDecoderVAEIntegrationTests(unittest.TestCase):
shapes = [(1, 4, 73, 97), (1, 4, 97, 73), (1, 4, 49, 65), (1, 4, 65, 49)] shapes = [(1, 4, 73, 97), (1, 4, 97, 73), (1, 4, 49, 65), (1, 4, 65, 49)]
with torch.no_grad(): with torch.no_grad():
for shape in shapes: for shape in shapes:
image = torch.zeros(shape, device=torch_device) image = torch.zeros(shape, device=torch_device, dtype=pipe.vae.dtype)
pipe.vae.decode(image) pipe.vae.decode(image)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment