Open spencerlisp opened 6 years ago
有两个可能:
-force_load
链接,文档如何链接PaddlePaddle库paddle_init
函数
https://github.com/PaddlePaddle/Mobile/blob/477186702e368a55c6a3319f2b78257c7c0ac51d/Demo/iOS/AICamera/AICamera/paddle_image_recognizer.h#L71-L71这两个都没问题,跑普通的cnn模型都ok,就是新用了个带有rnn模型的情况下出现 有其他可能原因么?我理解capi应该是完备的支持rnn layer的吧?
哦~想起来了,之前为了最小化paddle库的大小,把recurrent_layer_group
相关实现移除了。。。你们对paddle库的大小有要求么?
" Unknown class type: recurrent_layer_group" error occur when I run inference using RNN model capi: download from the pre-compiled libs in paddle mobile ios:iphone7
F0322 17:16:18.261178 3028687744 ClassRegistrar.h:65] Check failed: mapGet(type, creatorMap_, &creator) Unknown class type: recurrent_layer_group Check failure stack trace: @ 0x102c7e0bc google::LogMessage::Fail() @ 0x102c7d1e4 google::LogMessage::SendToLog() @ 0x102c7d9b8 google::LogMessage::Flush() @ 0x102c80f90 google::LogMessageFatal::~LogMessageFatal() @ 0x102c7e3fc google::LogMessageFatal::~LogMessageFatal() @ 0x102bc0a54 _ZN6paddle14ClassRegistrarINS_5LayerEJNS_11LayerConfigEEE12createByTypeERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS49allocatorIcEEEES2 @ 0x102bc08d8 paddle::Layer::create() @ 0x102be650c paddle::NeuralNetwork::init()::$_0::operator()() @ 0x102be5dc0 paddle::NeuralNetwork::init() @ 0x102beaae0 paddle::GradientMachine::create() @ 0x102c0689c paddle_gradient_machine_create_for_inference_with_parameters