add edge-creating error information
This commit is contained in:
parent
a7744bde25
commit
91b81385c3
|
@ -95,6 +95,11 @@ Status Edge::InitEdgeCost() {
|
||||||
<< " failed, it may be caused by setting 'elementwise_op_strategy_follow' true. "
|
<< " failed, it may be caused by setting 'elementwise_op_strategy_follow' true. "
|
||||||
"Try to set 'elementwise_op_strategy_follow' false.";
|
"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.";
|
MS_LOG(EXCEPTION) << "Generating cost for edge: " << edge_name_ << " failed.";
|
||||||
}
|
}
|
||||||
return Status::SUCCESS;
|
return Status::SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue