We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263b2b7 commit 787ca10Copy full SHA for 787ca10
examples/diffusers/cache_diffusion/pipeline/deploy.py
@@ -169,13 +169,16 @@ def export_onnx(backbone, onnx_path: Path):
169
output_names = ONNX_CONFIG[backbone.__class__][f"{name}"]["output_names"]
170
onnx_export(
171
module,
172
- args=dummy_input,
+ args=tuple(dummy_input.values())
173
+ if isinstance(dummy_input, dict)
174
+ else dummy_input,
175
f=_onnx_file.as_posix(),
176
input_names=input_names,
177
output_names=output_names,
178
dynamic_axes=ONNX_CONFIG[backbone.__class__][f"{name}"]["dynamic_axes"],
179
do_constant_folding=True,
180
opset_version=17,
181
+ dynamo=False,
182
)
183
else:
184
print(f"{_onnx_file!s} already exists!")
0 commit comments