Skip to content

Import of Onnx failed: Tensor with a non-empty shape #3146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
n1ght-hunter opened this issue May 3, 2025 · 0 comments
Open

Import of Onnx failed: Tensor with a non-empty shape #3146

n1ght-hunter opened this issue May 3, 2025 · 0 comments
Labels

Comments

@n1ght-hunter
Copy link

Describe the bug

When importing kokoro model the import will fail with

ERROR burn_import::logger: PANIC => panicked at C:\Users\Samuel\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\onnx-ir-0.17.0\src\rank_inference.rs:164:14:
ConstantOfShape node must have a Tensor with a non-empty shape

To Reproduce

i have created a repo to easily reproduce the error.
https://github.com/n1ght-hunter/burn_onnx_inport_fail
this can be tested with a local build and export to onnx or downloading a prebuilt onnx from sherpa-onnx

Expected behavior

This should output a clear error or not fail at all.

@antimora antimora added the onnx label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants