From 943d9728782bda6c80977d9d586f20c815b70a44 Mon Sep 17 00:00:00 2001 From: qingqing01 Date: Thu, 31 Jan 2019 12:58:32 +0800 Subject: [PATCH] Fix analysis predictor when loading the persistable RAW type variable. (#15613) --- paddle/fluid/inference/api/analysis_predictor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index 14d6ba8c56d..da2e9803f04 100644 --- a/paddle/fluid/inference/api/analysis_predictor.cc +++ b/paddle/fluid/inference/api/analysis_predictor.cc @@ -58,7 +58,8 @@ namespace { bool IsPersistable(const framework::VarDesc *var) { if (var->Persistable() && var->GetType() != framework::proto::VarType::FEED_MINIBATCH && - var->GetType() != framework::proto::VarType::FETCH_LIST) { + var->GetType() != framework::proto::VarType::FETCH_LIST && + var->GetType() != framework::proto::VarType::RAW) { return true; } return false; -- GitLab