Browse Source

modified: tests/ut/ge/graph/passes/replace_with_empty_const_pass_unittest.cc

tags/v1.2.0
zhaoxinxin 3 years ago
parent
commit
42b72d74b5
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      tests/ut/ge/graph/passes/replace_with_empty_const_pass_unittest.cc

+ 0
- 1
tests/ut/ge/graph/passes/replace_with_empty_const_pass_unittest.cc View File

@@ -48,7 +48,6 @@ ut::GraphBuilder Graph1Builder() {
add1->GetOpDesc()->AddInputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW)); add1->GetOpDesc()->AddInputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW));
add1->GetOpDesc()->AddInputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW)); add1->GetOpDesc()->AddInputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW));
add1->GetOpDesc()->AddOutputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW)); add1->GetOpDesc()->AddOutputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW));
cast1->GetOpDesc()->AddOutputDesc(GeTensorDesc(GeShape({1,1,8,8}),FORMAT_NCHW));
GeTensorDesc empty_tensor(GeShape({1,0,8,8}),FORMAT_NCHW); GeTensorDesc empty_tensor(GeShape({1,0,8,8}),FORMAT_NCHW);
cast1->GetOpDesc()->UpdateOutputDesc(0,empty_tensor); cast1->GetOpDesc()->UpdateOutputDesc(0,empty_tensor);




Loading…
Cancel
Save