add edge-creating error information

This commit is contained in:
Xiaoda Zhang 2020-05-28 15:23:21 +08:00
parent a7744bde25
commit 91b81385c3
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;