Skip to content

Commit b1d5035

Browse files
committed
Fix(//core/conversion/InterfaceTypes.cpp): Fix dimension padding bug, changed toDimsPad() to toDims()
Signed-off-by: Abhiram Iyer <[email protected]> Signed-off-by: Abhiram Iyer <[email protected]>
1 parent 0dc5729 commit b1d5035

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/conversion/InterfaceTypes.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ InputRange::InputRange(std::vector<int64_t> min_shape, std::vector<int64_t> opt_
5555
<< max_shape.size() << ")");
5656
}
5757

58-
min = util::toDimsPad(min_shape, 4);
59-
opt = util::toDimsPad(opt_shape, 4);
60-
max = util::toDimsPad(max_shape, 4);
58+
min = util::toDims(min_shape);
59+
opt = util::toDims(opt_shape);
60+
max = util::toDims(max_shape);
6161

6262
std::vector<int64_t> dyn_shape;
6363
for (size_t i = 0; i < opt_shape.size(); i++) {
@@ -72,7 +72,7 @@ InputRange::InputRange(std::vector<int64_t> min_shape, std::vector<int64_t> opt_
7272
}
7373
}
7474

75-
input_shape = util::toDimsPad(dyn_shape, 4);
75+
input_shape = util::toDims(dyn_shape);
7676

7777
}
7878

0 commit comments

Comments
 (0)