Skip to content

Commit d8572f2

Browse files
authored
Fix onnx tensor format (#654)
fix np onnx
1 parent c0c98df commit d8572f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __call__(
7373
prompt,
7474
padding="max_length",
7575
max_length=self.tokenizer.model_max_length,
76-
return_tensors="pt",
76+
return_tensors="np",
7777
)
7878
text_input_ids = text_inputs.input_ids
7979

0 commit comments

Comments
 (0)