未验证 提交 13295d90 编写于 作者: T tangwei12 提交者: GitHub

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

上级 0c335dcd
......@@ -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()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册