-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
C++预测默认开启MKLDNN内存泄露,重新初始化失败 #701
Comments
det = new DBDetector( rec = new CRNNRecognizer(config.rec_model_dir, config.use_gpu, config.gpu_id, renint detector 经常报段错误。直接就挂了 |
目前问题已经解决,解决方案,就是增加设置 config.SetMkldnnCacheCapacity(10); 设置缓存数量。默认是0不限制,内存会一直增长。 |
开启MKLDNN 内存一直在涨,按照提示的方案重置对象,会报错
Compile Traceback (most recent call last):
File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2525, in append_op
attrs=kwargs.get("attrs", None))
C++ Traceback (most recent call last):
0 paddle::AnalysisPredictor::Run(std::vector<paddle::PaddleTensor, std::allocatorpaddle::PaddleTensor > const&, std::vector<paddle::PaddleTensor, std::allocatorpaddle::PaddleTensor >, int)
1 paddle::framework::NaiveExecutor::Run()
2 paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, paddle::platform::Place const&)
3 paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, paddle::platform::Place const&) const
4 paddle::framework::OperatorWithKernel::RunImpl(paddle::framework::Scope const&, paddle::platform::Place const&, paddle::framework::RuntimeContext) const
5 paddle::framework::OperatorWithKernel::ChooseKernel(paddle::framework::RuntimeContext const&, paddle::framework::Scope const&, paddle::platform::Place const&) const
6 paddle::operators::ConvOp::GetExpectedKernelType(paddle::framework::ExecutionContext const&) const
7 paddle::framework::OperatorWithKernel::IndicateVarDataType(paddle::framework::ExecutionContext const&, std::string const&) const
8 paddle::platform::EnforceNotMet::EnforceNotMet(std::string const&, char const*, int)
9 paddle::platform::GetCurrentTraceBackStringabi:cxx11
Error Message Summary:
Error: The Input Variable(Input) of conv2d Op used to determine kernel data type is empty or not LoDTensor or SelectedRows or LoDTensorArray.
[Hint: Expected data_type != dafault_data_type, but received data_type:-1 == dafault_data_type:-1.] (at /home/zhou/ai/ocr/Paddle/paddle/fluid/framework/operator.cc:1385)
[operator < conv2d > error]
The text was updated successfully, but these errors were encountered: