Skip to content

Commit 6308190

Browse files
committed
fix(): RunGraphEngineDynamic fixed to work with dynamically sized input tensors
Signed-off-by: Abhiram Iyer <[email protected]> Signed-off-by: Abhiram Iyer <[email protected]>
1 parent 141763f commit 6308190

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/util/run_graph_engine.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,8 @@ std::vector<core::conversion::InputRange> toInputRangesDynamic(std::vector<at::T
3030
std::vector<int64_t> min_range(opt);
3131
std::vector<int64_t> max_range(opt);
3232

33-
min_range[0] = ceil(opt[0]/2.0);
34-
max_range[0] = 2*opt[0];
35-
36-
// for (int64_t each : min_range) {
37-
// std::cout << each << std::endl;
38-
// }
39-
// for (int64_t each : opt) {
40-
// std::cout << each << std::endl;
41-
// }
42-
// for (int64_t each : max_range) {
43-
// std::cout << each << std::endl;
44-
// }
33+
min_range[1] = ceil(opt[1]/2.0);
34+
max_range[1] = 2*opt[1];
4535

4636
a.push_back(core::conversion::InputRange(min_range, opt, max_range));
4737
}

0 commit comments

Comments
 (0)