Home
last modified time | relevance | path

Searched refs:clist_ptrs (Results 1 – 1 of 1) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/
Dcostmodel.cc25 void Simplify(CostPtrList *clist_ptrs) { in Simplify() argument
29 SimplifyForDecreasingCommunicationWithPartialPara(clist_ptrs); in Simplify()
32 SimplifyForDecreasingCommunicationForward(clist_ptrs); in Simplify()
35 void SimplifyForDecreasingCommunicationForward(CostPtrList *clist_ptrs) { in SimplifyForDecreasingCommunicationForward() argument
43 MS_EXCEPTION_IF_NULL(clist_ptrs); in SimplifyForDecreasingCommunicationForward()
44 std::vector<size_t> id(clist_ptrs->size()); in SimplifyForDecreasingCommunicationForward()
46 std::sort(id.begin(), id.end(), [&clist_ptrs](size_t x, size_t y) { in SimplifyForDecreasingCommunicationForward()
47 return clist_ptrs->at(x)->computation_cost_ < clist_ptrs->at(y)->computation_cost_; in SimplifyForDecreasingCommunicationForward()
50 for (size_t i = 0; i < clist_ptrs->size(); ++i) { in SimplifyForDecreasingCommunicationForward()
52 (clist_ptrs->at(id[i])->communication_forward_ < ret.back()->communication_forward_)) { in SimplifyForDecreasingCommunicationForward()
[all …]