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 #5995

Open
luyaor opened this issue Sep 8, 2022 · 1 comment
Open

[Bug] error on compiling an ONNX model #5995

luyaor opened this issue Sep 8, 2022 · 1 comment

Comments

@luyaor
Copy link

luyaor commented Sep 8, 2022

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

Error message:

F0828 08:00:55.572165  3922 Error.cpp:123] exitOnError(Error) got an unexpected ErrorValue: 
Error message: Node has no ints attribute with this name

Error return stack:
--------------------------------------------------------------------------------
/root/dev/glow/include/glow/Importer/ProtobufLoader.h:95
--------------------------------------------------------------------------------
/root/dev/glow/lib/Importer/ONNXModelLoader.cpp:2950
--------------------------------------------------------------------------------
/root/dev/glow/lib/Importer/ONNXModelLoader.cpp:6273
--------------------------------------------------------------------------------
/root/dev/glow/lib/Importer/ONNXModelLoader.cpp:6405
--------------------------------------------------------------------------------
/root/dev/glow/lib/Importer/ONNXModelLoader.cpp:6445
--------------------------------------------------------------------------------
/root/dev/glow/lib/Importer/ONNXModelLoader.cpp:6452
--------------------------------------------------------------------------------
*** Check failure stack trace: ***
./bin/model-compiler[0xcbde7f]
./bin/model-compiler[0xcbc2a2]
./bin/model-compiler[0xcbe288]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f7083f9b980]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f7081a4ce87]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f7081a4e7f1]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xa1f9)[0x7f70857bf1f9]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xc0cd)[0x7f70857c10cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7f70857c2f33]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xb8)[0x7f70857c0c28]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0x9)[0x7f70857c3999]
./bin/model-compiler[0x2a0318a]
./bin/model-compiler[0xa7d71b]
./bin/model-compiler[0x4d010a]
./bin/model-compiler[0x521510]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f7081a2fc87]
./bin/model-compiler[0x4cee5a]

The model file and run script are as follows:

g3.onnx.zip

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

@nikola-suljagic
Copy link

Hi I checked this issue and it caused by not supporting ONNX opset version 13 for Unsqueeze as well as for ReduceSum operators. Also, I faced with second issue because glow doesn't support multi axis input/attribute for ReduceSum and ReduceMean operators.
@luyaor can you please guide me what is necessary requirements for contribution, I am not sure who should assign me to specific issue or how to request assignment on issue.

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