Skip to content

Commit d82157b

Browse files
[Bug Fix] Should pass the dtype instead of torch_dtype (huggingface#4917)
.
1 parent 9357965 commit d82157b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/diffusers/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2381,7 +2381,7 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs):
23812381
vae.load_state_dict(converted_vae_checkpoint)
23822382

23832383
if torch_dtype is not None:
2384-
vae.to(torch_dtype=torch_dtype)
2384+
vae.to(dtype=torch_dtype)
23852385

23862386
return vae
23872387

0 commit comments

Comments
 (0)