Comments (2)
You have a model with dynamic dimensions. This means that dimension can vary, typically due to the input shape.
Often times that variable dimension affects output shapes with cascading effect downstream which means you have to make other nodes input and outputs have variable dimensions.
It is not always easy to make that work in all cases.
In this case Reshape takes data
input with the first and the last dimensions being dynamic, meaning you have multiple variable dimensions.
The error message indicates that at least one dimension has a value of zero, but the attribute allow_zero
is false(0) according to the image you posted.
To debug this, you have a couple of options. 1) Visually trace the data flow (it is actually possible, but not always) and attempt to compute where the zero is coming from and whether it should be there or should Reshape
allow it 2) Rebuild from source (C++) and enable some debugging facilities and dump the input/output shapes or store it in the SQL Light database.
from onnxruntime.
@yuslepukhin Thanks for the feedback, the model is a https://github.com/rhasspy/piper model that was probably converted by their converter from a ckpt to onnx model, so you mean that a problem could be in the export script?
What I found strange is that with onnxruntime v1.16 I didn't had these errors
This is the code I suppose was used to convert that model: https://github.com/rhasspy/piper/blob/master/src/python/piper_train/export_onnx.py
About the debugging, can you visually trace interactively? because there are tons of nodes, would be nice to be able to have a way to put a breakpoint and then inspecting the call stack :)
from onnxruntime.
Related Issues (20)
- [Documentation] The documentation for early versions is missing HOT 2
- pip install failure for onnxruntime==1.17.3 HOT 1
- Index put loop model regression with ort==1.18
- Non-zero status code returned while running Add node. Name:'Add_221'
- can't install on Python HOT 1
- Error in quantize vicuna-7b model from fp16 to int8 HOT 4
- Issue of UNet Model Inference with [model.onnx + model.onnx_data] in ONNX Runtime C++ for Stable Diffusion HOT 9
- Gemm fp8 run error HOT 3
- Where is onnxruntime-openvino==1.18.0 HOT 3
- [.NET] Update tensor implementations to new Tensor<T> type
- [Web] WebGPU and WASM Backends Unavailable within Service Worker HOT 5
- ONNXruntime version 1.18.0 HOT 6
- Could onnxruntime add VSINPU execution provider? HOT 2
- [Bug] The quantized weight type will be overridden by the activation type if per_channel is True HOT 3
- Java CreateTensor with NIO ByteBuffer for reuse purpose HOT 2
- [Training] Compiling ONNX Runtime for MIPS32 Linux for On-Device Training Capabilities HOT 1
- [Build] CUDA Illegal Memory Access error when using a custom Triton kernel HOT 1
- [Build] how to buid on openharmony? HOT 1
- OpenCL and Mali GPU support left out of all execution providers HOT 2
- [Feature Request] Offline optimization for CoreML
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxruntime.