From 8c0e1d5cba715cae9d9a47c788f3a75da6efba2c Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Tue, 19 Jun 2018 15:33:17 +0800 Subject: [PATCH] unittest case fix --- paddle/fluid/operators/save_load_op_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/operators/save_load_op_test.cc b/paddle/fluid/operators/save_load_op_test.cc index c4fcc61af..ccaea0eef 100644 --- a/paddle/fluid/operators/save_load_op_test.cc +++ b/paddle/fluid/operators/save_load_op_test.cc @@ -139,6 +139,7 @@ TEST(LoadFP16Op, CPU) { save_op->Run(scope, place); auto load_var = scope.Var("out_var"); + load_var->GetMutable(); auto load_op = paddle::framework::OpRegistry::CreateOp( "load", {}, {{"Out", {"out_var"}}}, attrs); load_op->Run(scope, place); -- GitLab