Skip to content

Commit 943d972

Browse files
authored
Fix analysis predictor when loading the persistable RAW type variable. (#15613)
1 parent 6e84eb1 commit 943d972

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/inference/api/analysis_predictor.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ namespace {
5858
bool IsPersistable(const framework::VarDesc *var) {
5959
if (var->Persistable() &&
6060
var->GetType() != framework::proto::VarType::FEED_MINIBATCH &&
61-
var->GetType() != framework::proto::VarType::FETCH_LIST) {
61+
var->GetType() != framework::proto::VarType::FETCH_LIST &&
62+
var->GetType() != framework::proto::VarType::RAW) {
6263
return true;
6364
}
6465
return false;

0 commit comments

Comments
 (0)