!1583 [Auto parallel] Add some edge-creating error information

Merge pull request !1583 from Xiaoda/add-error-info-in-edge-creating
This commit is contained in:
mindspore-ci-bot 2020-05-28 19:23:47 +08:00 committed by Gitee
commit 29eacb0fff
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ Status Edge::InitEdgeCost() {
<< " failed, it may be caused by setting 'elementwise_op_strategy_follow' true. "
"Try to set 'elementwise_op_strategy_follow' false.";
}
if (edge_name_.find(RESHAPE) != std::string::npos) {
MS_LOG(EXCEPTION) << "Generating cost for edge: " << edge_name_
<< " failed, it may be caused by setting different strategies for operators following Reshape. "
"Try to fix that.";
}
MS_LOG(EXCEPTION) << "Generating cost for edge: " << edge_name_ << " failed.";
}
return Status::SUCCESS;