Fix onnx tensor format (#654)

fix np onnx
This commit is contained in:
Anton Lozhkov 2022-09-27 19:09:13 +02:00 committed by GitHub
parent c0c98df9a1
commit d8572f20c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class StableDiffusionOnnxPipeline(DiffusionPipeline):
prompt,
padding="max_length",
max_length=self.tokenizer.model_max_length,
return_tensors="pt",
return_tensors="np",
)
text_input_ids = text_inputs.input_ids