From 1c5343501b0ee91273a50a6dcd8b4d24ce685e18 Mon Sep 17 00:00:00 2001 From: zhaoxinxin Date: Mon, 18 Jan 2021 13:56:54 +0800 Subject: [PATCH] modified: tests/ut/ge/graph/preprocess/graph_preprocess_unittest.cc --- tests/ut/ge/graph/preprocess/graph_preprocess_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ut/ge/graph/preprocess/graph_preprocess_unittest.cc b/tests/ut/ge/graph/preprocess/graph_preprocess_unittest.cc index 7874fbe3..ba3ec63d 100644 --- a/tests/ut/ge/graph/preprocess/graph_preprocess_unittest.cc +++ b/tests/ut/ge/graph/preprocess/graph_preprocess_unittest.cc @@ -58,7 +58,7 @@ TEST_F(UtestGraphPreproces, test_dynamic_input_shape_parse) { tensor1.SetFormat(ge::FORMAT_NCHW); tensor1.SetShape(ge::GeShape({3, 12, 5, 5})); tensor1.SetDataType(ge::DT_FLOAT); - GeTensor input1 = new GeTensor(tensor1); + GeTensor input1(tensor1); std::vector user_input = {input1}; std::map graph_option = {{"ge.exec.dynamicGraphExecuteMode","dynamic_execute"}, {"ge.exec.dataInputsShapeRange","[3,1~20,2~10,5]"}};