在Net :: Init中Caffe Boost Shared_Ptr SegFault?

时间:2016-03-08 22:49:23

标签: shared-ptr caffe

Caffe在Net :: Init

中使用Boost shared_ptr崩溃
_net.reset(new Net<float>(path + modelProtoTxt, TEST));

注意BAD'the'指针用于RNG(0x1):

enter image description here

它实际上在BaseConvul​​utionLayer :: Setup - &gt;内部死亡XavierFiller ::填充 - &gt; Caffe :: RNG(破坏了这个指针)

enter image description here

编译器/链接器标志

g ++ mytest.cpp -o testcaffe -lcaffe -lglog -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_system -std = c ++ 11 -g -O0

相同版本的libcaffe.so与之前编译的应用程序一起使用相同的模型文件(prototxt等)

这可能是g ++构建/链接标志与boost版本不匹配的结果吗?

/usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0

0 个答案:

没有答案