1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix memory consistency decoder test (#5828)

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
This commit is contained in:
Will Berman
2023-11-17 09:31:01 -08:00
committed by GitHub
parent c896b841e4
commit 2a84e8bb5a

View File

@@ -804,6 +804,7 @@ class ConsistencyDecoderVAEIntegrationTests(unittest.TestCase):
gc.collect()
torch.cuda.empty_cache()
@torch.no_grad()
def test_encode_decode(self):
vae = ConsistencyDecoderVAE.from_pretrained("openai/consistency-decoder") # TODO - update
vae.to(torch_device)