"vscode:/vscode.git/clone" did not exist on "fbf61f465b7756bd3d01a272ea994741c3cfcf8c"
Unverified Commit d82157b3 authored by zhiqiang's avatar zhiqiang Committed by GitHub
Browse files

[Bug Fix] Should pass the dtype instead of torch_dtype (#4917)

.
parent 93579650
...@@ -2381,7 +2381,7 @@ class FromOriginalVAEMixin: ...@@ -2381,7 +2381,7 @@ class FromOriginalVAEMixin:
vae.load_state_dict(converted_vae_checkpoint) vae.load_state_dict(converted_vae_checkpoint)
if torch_dtype is not None: if torch_dtype is not None:
vae.to(torch_dtype=torch_dtype) vae.to(dtype=torch_dtype)
return vae return vae
......
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