Skip to content

Commit c46331f

Browse files
committed
device placement.
1 parent ee662cf commit c46331f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pipelines/controlnet_flux/test_controlnet_flux.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ def test_canny(self):
220220

221221
prompt_embeds = torch.load(
222222
hf_hub_download(repo_id="diffusers/test-slices", repo_type="dataset", filename="flux/prompt_embeds.pt")
223-
)
223+
).to(torch_device)
224224
pooled_prompt_embeds = torch.load(
225225
hf_hub_download(
226226
repo_id="diffusers/test-slices", repo_type="dataset", filename="flux/pooled_prompt_embeds.pt"
227227
)
228-
)
228+
).to(torch_device)
229229

230230
output = pipe(
231231
prompt_embeds=prompt_embeds,

0 commit comments

Comments
 (0)