PaddlePaddle / Mobile

Embedded and Mobile Deployment
Apache License 2.0
71 stars 29 forks source link

" Unknown class type: recurrent_layer_group" when using capi in ios #84

Open spencerlisp opened 6 years ago

spencerlisp commented 6 years ago

" 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

Xreki commented 6 years ago

有两个可能:

spencerlisp commented 6 years ago

这两个都没问题,跑普通的cnn模型都ok,就是新用了个带有rnn模型的情况下出现 有其他可能原因么?我理解capi应该是完备的支持rnn layer的吧?

Xreki commented 6 years ago

哦~想起来了,之前为了最小化paddle库的大小,把recurrent_layer_group相关实现移除了。。。你们对paddle库的大小有要求么?