diff --git a/mindspore/ccsrc/frontend/parallel/step_auto_parallel.cc b/mindspore/ccsrc/frontend/parallel/step_auto_parallel.cc index 9b13a2e512f..9a3c26c0b1c 100644 --- a/mindspore/ccsrc/frontend/parallel/step_auto_parallel.cc +++ b/mindspore/ccsrc/frontend/parallel/step_auto_parallel.cc @@ -732,7 +732,7 @@ void ConstructCostGraphEdges(const std::vector &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) {