用paddle C-API做预测,更新模型出错
Created by: Jarlonyan
在线预测中,加载模型A预测是OK的。现在需要用模型 B替换掉模型A,这个过程是热加载。也就是说在内存中同时有两份模型。现在的问题是:在A加载OK的情况下,再加载B,就爆出下面的错误,程序dump了。请问,这是什么原因呢?
F0921 16:30:03.393759 8187 utilities.cc:322] Check failed: !IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
@ 0x7f1f9170387d google::LogMessage::Fail()
@ 0x7f1f9170732c google::LogMessage::SendToLog()
@ 0x7f1f917033a3 google::LogMessage::Flush()
@ 0x7f1f9170883e google::LogMessageFatal::~LogMessageFatal()
@ 0x7f1f9170c3d3 google::glog_internal_namespace_::InitGoogleLoggingUtilities()
@ 0x7f1f9167aabc paddle::initMain()
@ 0x7f1f9142fa77 paddle_init
@ 0x7bf722 DNNModel::init()
@ 0x7c08b2 DNNModel_reloader()
@ 0x6d98b4 wsy::HotLoader<>::reload()
@ 0x7ca8af wsy::monitor_thread()
@ 0x7f1f932031c3 start_thread
@ 0x7f1f9074212d __clone
@ (nil) (unknown)
Aborted (core dumped)