paddle::platform::EnforceNotMet' what(): Cannot get attribute height_sections by type
Created by: sunhf
使用c++来预测,依赖baidu/paddlepaddle/paddle@v1.4.1_pb32@git_branch 模型是基于1.5.0的gpu版本训练的 加载模型时出core,错误信息为: I0909 13:19:23.993065 19076 analysis_predictor.cc:152] load parameters terminate called after throwing an instance of 'paddle::platform::EnforceNotMet' what(): Cannot get attribute height_sections by type std::vector<int, std::allocator >, its type is std::vector<long, std::allocator > at [baidu/paddlepaddle/paddle/paddle/fluid/framework/attribute.h:42]
具体栈信息如下。 #9 (closed) 0x000000000130a0c3 in paddle::framework::OpRegistry::CreateOp(paddle::framework::OpDesc const&) () #10 (closed) 0x00000000012fa06d in paddle::framework::NaiveExecutor::CreateOps(paddle::framework::ProgramDesc const&, int, bool) () #11 0x00000000012faa9b in paddle::framework::NaiveExecutor::Prepare(paddle::framework::Scope*, paddle::framework::ProgramDesc const&, int, bool) () ---Type to continue, or q to quit--- #12 (closed) 0x00000000006db41a in paddle::AnalysisPredictor::PrepareExecutor() () #13 (closed) 0x00000000006e2785 in paddle::AnalysisPredictor::Init(std::shared_ptrpaddle::framework::Scope const&, std::shared_ptrpaddle::framework::ProgramDesc const&) () #14 (closed) 0x00000000006e2bf7 in std::unique_ptr<paddle::PaddlePredictor, std::default_deletepaddle::PaddlePredictor > paddle::CreatePaddlePredictor<paddle::AnalysisConfig, (paddle::PaddleEngineKind)2>(paddle::AnalysisConfig const&) () #15 0x00000000006e3811 in std::unique_ptr<paddle::PaddlePredictor, std::default_deletepaddle::PaddlePredictor > paddle::CreatePaddlePredictorpaddle::AnalysisConfig(paddle::AnalysisConfig const&) ()