I am running into an error while importing a network in ONNX format.
terminate called after throwing an instance of 'std::out_of_range'
what(): Attribute not found: shape
How could I add verbosity to this run to understand for which layer it’s complaining about not finding the “shape” attribute? I used the –verbose switch but it affects only the logger, which does not seem to affect the verbosity of the parser at all.
I am using TensorRT 4. Hard to imagine that this is production software.
This is the backtrace I see:
#0 0x00007fffe11b5207 in raise () from /lib64/libc.so.6
#1 0x00007fffe11b68f8 in abort () from /lib64/libc.so.6
#2 0x00007fffe1ac47d5 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6
#3 0x00007fffe1ac2746 in ?? () from /lib64/libstdc++.so.6
#4 0x00007fffe1ac2773 in std::terminate() () from /lib64/libstdc++.so.6
#5 0x00007fffe1ac2993 in __cxa_throw () from /lib64/libstdc++.so.6
#6 0x00007ffff2ab6f40 in nvonnxparser::OnnxAttrs::at(std::string) const ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#7 0x00007ffff2ab6f9d in ?? () from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#8 0x00007ffff2ab3b68 in nvonnxparser::convert_Reshape(nvonnxparser::Converter*, onnx::NodeProto const*) ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#9 0x00007ffff2ab848f in nvonnxparser::Converter::convert_node(onnx::NodeProto const*) ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#10 0x00007ffff2aba9e2 in nvonnxparser::Converter::convert_tensor_or_weights(std::string) ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#11 0x00007ffff2ab1099 in nvonnxparser::convert_Gemm(nvonnxparser::Converter*, onnx::NodeProto const*) ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#12 0x00007ffff2ab848f in nvonnxparser::Converter::convert_node(onnx::NodeProto const*) ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#13 0x00007ffff2abf9ca in nvonnxparser::parserONNX::convertToTRTNetwork() ()
from /home/soroy/work/TensorRT-4.0.1.6/lib/libnvparsers.so.4.1.2
#14 0x0000000000405b82 in onnxToTRTModel () at trtexec.cpp:315
#15 0x0000000000407442 in createEngine () at trtexec.cpp:584
#16 0x000000000040789e in main (argc=2, argv=0x7fffffffde98) at trtexec.cpp:657
The ONNX file looks good. I am able to view it using Netron, for instance.
Anyone familiar with this issue?
-SR