|
|
@ -58,7 +58,7 @@ TEST(CheckpointLoadOp, CPU) {
|
|
|
|
paddle::framework::AttributeMap attrs;
|
|
|
|
paddle::framework::AttributeMap attrs;
|
|
|
|
attrs.insert({"dir", std::string("ckpt")});
|
|
|
|
attrs.insert({"dir", std::string("ckpt")});
|
|
|
|
|
|
|
|
|
|
|
|
auto save_op =
|
|
|
|
auto save_op = paddle::framework::OpRegistry::CreateOp(
|
|
|
|
paddle::framework::OpRegistry::CreateOp("checkpoint_load", {}, {}, attrs);
|
|
|
|
"checkpoint_load", {{"X", {"test_var"}}}, {}, attrs);
|
|
|
|
save_op->Run(scope, place);
|
|
|
|
save_op->Run(scope, place);
|
|
|
|
}
|
|
|
|
}
|
|
|
|