!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:
i-robot 2021-11-24 01:16:39 +00:00 committed by Gitee
commit f87c6f5ff7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {