Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/core/abstract/
Dprim_structures.cc251 std::vector<AbstractAttribute> dict_elems = dict->elements(); in InferImplDictGetItem() local
252 auto it = std::find_if(dict_elems.begin(), dict_elems.end(), in InferImplDictGetItem()
254 if (it == dict_elems.end()) { in InferImplDictGetItem()
274 std::vector<AbstractAttribute> dict_elems = dict->elements(); in InferImplDictSetItem() local
275 auto it = std::find_if(dict_elems.begin(), dict_elems.end(), in InferImplDictSetItem()
280 if (it != dict_elems.end()) { in InferImplDictSetItem()
281 int64_t index = it - dict_elems.begin(); in InferImplDictSetItem()
282 dict_elems[LongToSize(index)] = new_ele; in InferImplDictSetItem()
284 dict_elems.push_back(new_ele); in InferImplDictSetItem()
286 return std::make_shared<AbstractDictionary>(dict_elems); in InferImplDictSetItem()
[all …]
Dprim_statement.cc170 std::vector<AbstractAttribute> dict_elems = dict->elements(); in IsInDict() local
171 auto it = std::find_if(dict_elems.begin(), dict_elems.end(), in IsInDict()
173 return it != dict_elems.end(); in IsInDict()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/
Dunpack_call.cc79 auto dict_elems = arg_dict->elements(); in GenerateFuncGraph() local
80 (void)std::transform(dict_elems.begin(), dict_elems.end(), std::back_inserter(elems), in GenerateFuncGraph()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dprim.cc127 auto dict_elems = arg_dict->elements(); in GetUnpackGraphSpecArgsList() local
129 dict_elems.begin(), dict_elems.end(), std::back_inserter(graph_specialize_args), in GetUnpackGraphSpecArgsList()