Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paddle::platform::EnforceNotMet' what(): Cannot get attribute height_sections by type #19705

Closed
sunhf opened this issue Sep 9, 2019 · 3 comments

Comments

@sunhf
Copy link

sunhf commented Sep 9, 2019

使用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 0x000000000130a0c3 in paddle::framework::OpRegistry::CreateOp(paddle::framework::OpDesc const&) ()
#10 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 0x00000000006db41a in paddle::AnalysisPredictor::PrepareExecutor() ()
#13 0x00000000006e2785 in paddle::AnalysisPredictor::Init(std::shared_ptrpaddle::framework::Scope const&, std::shared_ptrpaddle::framework::ProgramDesc const&) ()
#14 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&) ()

@tensor-tang
Copy link
Contributor

麻烦说下模型是什么版本生成的

@sunhf
Copy link
Author

sunhf commented Sep 9, 2019

模型在问题描述中说过了,是1.5.0的,应该是版本不一致导致,但目前有1.5.0对应的c++依赖库吗

@tensor-tang
Copy link
Contributor

好的,由于您是内部版本问题,我们内部解决。

@sunhf sunhf closed this as completed Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants