forked from huawei/mindspore2022
!26623 [Auto parallel] Adjusting codestyle in step_auto_parallel.cc
Merge pull request !26623 from Xiaoda/107-adjusting-ApplyApproximationForParaNode-r1.5
This commit is contained in:
commit
f87c6f5ff7
|
|
@ -732,7 +732,7 @@ void ConstructCostGraphEdges(const std::vector<AnfNodePtr> &all_nodes) {
|
|||
MS_LOG(INFO) << "Constructing edges for cost graph ends.";
|
||||
}
|
||||
|
||||
void ApplyApproximationForParaNode(OperatorInfoPtr target_op_info) {
|
||||
void ApplyApproximationForParaNode(const OperatorInfoPtr &target_op_info) {
|
||||
// If 'approximation' is enabled, the edges need to be checked have effective costs.
|
||||
auto approximation = CostModelContext::GetInstance()->dp_algo_enable_approxi();
|
||||
if (approximation) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue