Skip to content

Commit 021f0de

Browse files
committed
torch_device instead of cuda.
1 parent 1760419 commit 021f0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pipelines/controlnet_flux/test_controlnet_flux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_canny(self):
210210
text_encoder_2=None,
211211
controlnet=controlnet,
212212
torch_dtype=torch.bfloat16,
213-
).to("cuda")
213+
).to(torch_device)
214214
pipe.set_progress_bar_config(disable=None)
215215

216216
generator = torch.Generator(device="cpu").manual_seed(0)

0 commit comments

Comments
 (0)