Feature: Get default from ge ir graph while no user input shape

pull/549/head
l00444296 4 years ago
parent 07800ed03c
commit 30dbe7d97f

@ -310,6 +310,7 @@ graphStatus Impl::GetDefaultInputShape(const Graph &graph, string &default_shape
GELOGD("Data op name: %s, data shape: %s", data_op_name.c_str(), tmp_shape_str.c_str());
}
}
default_shape = (default_shape.empty() ? default_shape : default_shape.substr(0, default_shape.size() - 1));
GELOGI("Get default data op shape from ge ir graph: %s", default_shape.c_str());
return GRAPH_SUCCESS;
}

Loading…
Cancel
Save