Browse Source

!403 delete check when adapter has checked

From: @zhou_lili
Reviewed-by: @liujunzhu,@youui
Signed-off-by: @youui
tags/v1.1.0
mindspore-ci-bot Gitee 4 years ago
parent
commit
0eefc930e2
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      ge/graph/manager/graph_manager.cc

+ 0
- 10
ge/graph/manager/graph_manager.cc View File

@@ -1540,16 +1540,6 @@ Status GraphManager::ParseOptions(const std::map<std::string, std::string> &opti
ParseOption(options, DYNAMIC_NODE_TYPE, options_.dynamic_node_type); ParseOption(options, DYNAMIC_NODE_TYPE, options_.dynamic_node_type);
GELOGD("Dynamic dims params: input shape is %s, dynamic dims is %s, dynamic node type is %d.", GELOGD("Dynamic dims params: input shape is %s, dynamic dims is %s, dynamic node type is %d.",
options_.input_shape.c_str(), options_.dynamic_dims.c_str(), options_.dynamic_node_type); options_.input_shape.c_str(), options_.dynamic_dims.c_str(), options_.dynamic_node_type);
if ((!options_.input_shape.empty() && options_.dynamic_dims.empty()) ||
(options_.input_shape.empty() && !options_.dynamic_dims.empty())) {
GELOGE(GRAPH_PARAM_INVALID, "Should set input shape and dynamic dims at the same time");
return GRAPH_PARAM_INVALID;
}
if ((!options_.input_shape.empty() && options_.dynamic_node_type == kInvalidDynaimcDimsType) ||
(!options_.dynamic_dims.empty() && options_.dynamic_node_type == kInvalidDynaimcDimsType)) {
GELOGE(GRAPH_PARAM_INVALID, "Should set valid dynamic node type");
return GRAPH_PARAM_INVALID;
}


// Set Build model and step // Set Build model and step
ParseOption(options, BUILD_MODE, options_.build_mode); ParseOption(options, BUILD_MODE, options_.build_mode);


Loading…
Cancel
Save