From f79064274f1260567a2570785b323d766b81c1d7 Mon Sep 17 00:00:00 2001 From: zhaoxinxin Date: Fri, 15 Jan 2021 14:20:48 +0800 Subject: [PATCH] modified: ge/graph/preprocess/graph_preprocess.cc --- ge/graph/preprocess/graph_preprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/graph/preprocess/graph_preprocess.cc b/ge/graph/preprocess/graph_preprocess.cc index f0a8c1f3..19f5ef54 100644 --- a/ge/graph/preprocess/graph_preprocess.cc +++ b/ge/graph/preprocess/graph_preprocess.cc @@ -959,7 +959,7 @@ Status ParseDynamicInputShapeRange(const std::string &shape_range, // fix dim auto range_value = StringToLongNoThrow(range_pair_set.at(0).c_str()); if (range_value < 0) { - range_pair = std::make_pair(0, range_value); + range_pair = std::make_pair(1, range_value); } else { range_pair = std::make_pair(range_value, range_value); }