Searched refs:origin_cost (Results 1 – 1 of 1) sorted by relevance
82 void RefineForPracticalCost(const CostPtr &origin_cost, bool is_redistribution) { in RefineForPracticalCost() argument83 MS_EXCEPTION_IF_NULL(origin_cost); in RefineForPracticalCost()90 if ((origin_cost->communication_redis_forward_ > EPS) && in RefineForPracticalCost()91 (origin_cost->communication_redis_forward_ <= comm_threshold)) { in RefineForPracticalCost()92 origin_cost->communication_redis_forward_ = comm_const; in RefineForPracticalCost()93 } else if (origin_cost->communication_redis_forward_ > comm_threshold) { in RefineForPracticalCost()94 origin_cost->communication_redis_forward_ += comm_bias; in RefineForPracticalCost()96 if ((origin_cost->communication_redis_backward_ > EPS) && in RefineForPracticalCost()97 (origin_cost->communication_redis_backward_ <= comm_threshold)) { in RefineForPracticalCost()98 origin_cost->communication_redis_backward_ = comm_const; in RefineForPracticalCost()[all …]