add X to test

shanyi15-patch-3
tangwei12 7 years ago
parent 744e95d305
commit 955c79340c

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

Loading…
Cancel
Save