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

[Bug] error on compiling an ONNX model #5997

Open
luyaor opened this issue Sep 8, 2022 · 0 comments
Open

[Bug] error on compiling an ONNX model #5997

luyaor opened this issue Sep 8, 2022 · 0 comments

Comments

@luyaor
Copy link

luyaor commented Sep 8, 2022

When compiling following ONNX model with Glow, the compiler fails with errors.

image

Error message:

model-compiler: /root/dev/glow/include/glow/Base/Type.h:364: std::pair<dim_t, dim_t> glow::collapseShape(llvm::ArrayRef<dim_t>, glow::unsigned_t): Assertion `1 <= n && n <= dims.size()' failed.
./bin/model-compiler[0xcbde7f]
./bin/model-compiler[0xcbc2a2]
./bin/model-compiler[0xcbe288]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7fb8eea46980]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fb8ec4f7e87]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fb8ec4f97f1]
/lib/x86_64-linux-gnu/libc.so.6(+0x303fa)[0x7fb8ec4e93fa]
/lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7fb8ec4e9472]
./bin/model-compiler[0x64be2b]
./bin/model-compiler[0x5df1b5]
./bin/model-compiler[0x93446e]
./bin/model-compiler[0xa73d29]
./bin/model-compiler[0xa94cae]
./bin/model-compiler[0x8fe46f]
./bin/model-compiler[0xa7712c]
./bin/model-compiler[0xa7cbfa]
./bin/model-compiler[0xa7db03]
./bin/model-compiler[0xa7d6fe]
./bin/model-compiler[0x4d010a]
./bin/model-compiler[0x521510]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fb8ec4dac87]
./bin/model-compiler[0x4cee5a]

The model file and run script are as follows:

g33.onnx.zip

./bin/model-compiler -model ./g3.onnx -emit-bundle ./mybundle --backend=CPU

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

1 participant