DNNLibrary icon indicating copy to clipboard operation
DNNLibrary copied to clipboard

libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: Unsupported operator Shape

Open lamhoangtung opened this issue 4 years ago • 1 comments

Hi I'm trying to convert a simple onyx model to day format but got this error

libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: Unsupported operator Shape
[1]    22297 abort      /Users/linus/myself/DNNLibrary/build/tools/onnx2daq/onnx2daq resnet50_ocr.onn

Any ideal how to fix this ?

lamhoangtung avatar Jan 04 '20 17:01 lamhoangtung

Sorry for the late reply.

Could you please try simplifying your onnx model by https://github.com/daquexian/onnx-simplifier? onnx-simplifier will eliminate most Shape operators.

daquexian avatar Jan 28 '20 08:01 daquexian