here is the log, I am using tensor rt 4.
the situation is like this:
To run this model, I wrote two plugins , slice layer A and l2normalization B,
from logs, I can see the construction of A and construction of B , and also the getOutputDims of A is called,
but B::getOutputDims is not called.
the A and B layers are both before the concat layer.
I wonder why the l2normalization is not called and it just jumps to create the concat layer, and crashed.
did i describe it clearly?
hoping for replies…
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000021 in ?? ()
(gdb) bt
#0 0x0000000000000021 in ?? ()
#1 0x00007ffff3305056 in nvinfer1::PluginLayer::getOutputForm(int, std::vector<nvinfer1::TensorForm, std::allocatornvinfer1::TensorForm > const&) const () from /usr/local/tensor_rt/lib/libnvinfer.so.4
#2 0x00007ffff331d557 in nvinfer1::Network::updateTensor(nvinfer1::NetworkTensor const*) const ()
from /usr/local/tensor_rt/lib/libnvinfer.so.4
#3 0x00007ffff331d8e7 in nvinfer1::NetworkTensor::getDimensions() const ()
from /usr/local/tensor_rt/lib/libnvinfer.so.4
#4 0x00007ffff330bc63 in nvinfer1::ConcatenationLayer::ConcatenationLayer(nvinfer1::Network*, std::string const&, nvinfer1::ITensor* const*, int, nvinfer1::ITensor*) ()
from /usr/local/tensor_rt/lib/libnvinfer.so.4
#5 0x00007ffff331f717 in nvinfer1::Network::addConcatenation(nvinfer1::ITensor* const*, int) ()
from /usr/local/tensor_rt/lib/libnvinfer.so.4
#6 0x00007ffff29bce05 in parseConcat(nvinfer1::INetworkDefinition&, ditcaffe::LayerParameter const&, CaffeWeightFactory&, BlobNameToTensor&) () from /usr/local/tensor_rt/lib/libnvparsers.so.4.1.2
#7 0x00007ffff29bf7af in CaffeParser::parse(char const*, char const*, nvinfer1::INetworkDefinition&, nvinfer1::DataType) () from /usr/local/tensor_rt/lib/libnvparsers.so.4.1.2
#8 0x0000000000404f25 in caffeToTRTModel (
deployFile=0x45b2b0 “/home/user/codes/tensor_rt/mx2caffe/arcface-0.1.0/deploy.prototxt”,
modelFile=0x45b2f8 “/home/user/codes/tensor_rt/mx2caffe/arcface-0.1.0/arcface.caffemodel”,
outputs=std::vector of length 1, capacity 1 = {…}, maxBatchSize=1, pluginFactory=0x7fffffffcbf8,
trtModelStream=@0x7fffffffcb98: 0x0) at samplePlugin.cpp:429
#9 0x0000000000405508 in main (argc=1, argv=0x7fffffffdce8) at samplePlugin.cpp:496