From 53bc30dd45cf2e4f85bd42c9b69c50347d6bde6d Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Tue, 5 Dec 2023 13:42:25 +0100 Subject: [PATCH] [From single file] remove depr warning (#6043) --- src/diffusers/loaders/single_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/loaders/single_file.py b/src/diffusers/loaders/single_file.py index 8c63c4cf59a5..bf100e7f2c81 100644 --- a/src/diffusers/loaders/single_file.py +++ b/src/diffusers/loaders/single_file.py @@ -282,7 +282,7 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs): ) if torch_dtype is not None: - pipe.to(torch_dtype=torch_dtype) + pipe.to(dtype=torch_dtype) return pipe