Skip to content
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

constexpr llvm::ArrayRef<T>::ArrayRef(const T*, const T*) [with T = long int]: Assertion `begin <= end' failed. #2989

Open
cxy2333-hue opened this issue Oct 30, 2024 · 2 comments

Comments

@cxy2333-hue
Copy link

cxy2333-hue commented Oct 30, 2024

When I run the command in the terminal: $ onnx-mlir encoder-epoch-12-avg-2-chunk-16-left-64.onnx

This is the output:

[1/6] Wed Oct 30 15:29:25 2024 (0s) Importing ONNX Model to MLIR Module from "encoder-epoch-12-avg-2-chunk-16-left-64.onnx"
[2/6] Wed Oct 30 15:29:25 2024 (0s) Compiling and Optimizing MLIR Module
onnx-mlir: /home/tjy/project_cxy/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:84: constexpr llvm::ArrayRef::ArrayRef(const T*, const T*) [with T = long int]: Assertion `begin <= end' failed.
Aborted (core dumped)

This is the onnx model
model.zip

How to solve it?

@AlexandreEichenberger
Copy link
Collaborator

AlexandreEichenberger commented Oct 30, 2024

Can you tell me on which machine/os you are testing this model? And where is this model from? Model zoo?

@cxy2333-hue
Copy link
Author

Can you tell me on which machine/os you are testing this model? And where is this model from? Model zoo?

Thank you for your reply!I'm sorry for the lack of information I provided. I tested this model on Ubuntu 24.04.1
Information about ONNX-MLIR is as follows:
onnx-mlir version 0.4.2, onnx version 1.16.2 (https://github.com/onnx/onnx-mlir.git 012f33c)
LLVM version 20.0.0git (https://github.com/llvm/llvm-project.git 00128a20eec27246719d73ba427bf821883b00b4)
Optimized build with assertions.
Default target: x86_64-unknown-linux-gnu
Host CPU: alderlake

The model is from https://github.com/k2-fsa/sherpa-onnx/releases/download/kws-models/sherpa-onnx-kws-zipformer-wenetspeech-3.3M-2024-01-01.tar.bz2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants