From 50b8b31008c7619c7521eb1e318523c52dd0c917 Mon Sep 17 00:00:00 2001 From: zhaoxinxin Date: Mon, 4 Jan 2021 23:20:38 +0800 Subject: [PATCH] modified: ge/graph/preprocess/graph_preprocess.cc --- ge/graph/preprocess/graph_preprocess.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/graph/preprocess/graph_preprocess.cc b/ge/graph/preprocess/graph_preprocess.cc index 2ae39b3c..9672c497 100644 --- a/ge/graph/preprocess/graph_preprocess.cc +++ b/ge/graph/preprocess/graph_preprocess.cc @@ -1032,7 +1032,7 @@ Status UpdateDynamicInputShapeRange(const ge::GeAttrValue::INT index, desc.SetShape(origin_shape); desc.SetShapeRange(current_shape_range_vec); - /*int64_t dynamic_shape_size = 1; + int64_t dynamic_shape_size = 1; for (const auto range_pair : range_vec.at(index)) { FMK_INT64_MULCHECK(dynamic_shape_size, range_pair.second); dynamic_shape_size *= range_pair.second; @@ -1046,7 +1046,7 @@ Status UpdateDynamicInputShapeRange(const ge::GeAttrValue::INT index, FMK_INT64_MULCHECK(dynamic_shape_size, data_type_size); dynamic_shape_size *= data_type_size; GELOGI("In dynamic_execute mode ,set input %s shape range size %ld", op->GetName().c_str(), dynamic_shape_size); - ge::TensorUtils::SetSize(desc, dynamic_shape_size);*/ + ge::TensorUtils::SetSize(desc, dynamic_shape_size); graphStatus graph_ret = op->UpdateInputDesc(0, desc); GE_CHK_STATUS_RET(graph_ret, "UpdateInputDesc fail, graph ret: %u", graph_ret); graph_ret = op->UpdateOutputDesc(0, desc);