load persistables with selected rows, test=develop (#17047)

shanyi15-patch-1
tangwei12 6 years ago committed by GitHub
parent 0c335dcd2c
commit 13295d90d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,7 +85,12 @@ void LoadPersistables(framework::Executor* executor, framework::Scope* scope,
new_var->SetShape(var->GetShape());
new_var->SetDataType(var->GetDataType());
new_var->SetType(var->GetType());
new_var->SetLoDLevel(var->GetLoDLevel());
if (var->GetType() !=
framework::proto::VarType::Type::VarType_Type_SELECTED_ROWS) {
new_var->SetLoDLevel(var->GetLoDLevel());
}
new_var->SetPersistable(true);
if (!param_filename.empty()) {

Loading…
Cancel
Save