webonnx / wonnx

A WebGPU-accelerated ONNX inference run-time written 100% in Rust, ready for native and the web
Other
1.61k stars 59 forks source link

Error: Could not infer shapes: unsupported: Reshape with shape containing a -1 element #208

Open BinaryWarlock opened 5 months ago

BinaryWarlock commented 5 months ago

Describe the bug Error: Could not infer shapes: unsupported: Reshape with shape containing a -1 element

To Reproduce Using onnx-clip model which you can grab at https://lakera-clip.s3.eu-west-1.amazonaws.com/clip_image_model_vitb32.onnx (about 336 MiB) $ nnx prepare -i data/clip_image_model_vitb32.onnx data/clip_image_model_vitb32.onnx.prepared --set image_batch_size=1

Expected behavior It to prepare the model