Searched refs:key_values_ (Results 1 – 7 of 7) sorted by relevance
/third_party/mindspore/mindspore/core/ir/dtype/ |
D | container.cc | 198 key_values_.begin(), key_values_.end(), std::back_inserter(kv), in DeepCopy() 216 for (const auto &kv : key_values_) { in DumpContent() 237 if (key_values_.size() != other_dict.key_values_.size()) { in operator ==() 240 for (size_t index = 0; index < key_values_.size(); index++) { in operator ==() 241 if (key_values_[index].first != other_dict.key_values_[index].first) { in operator ==() 244 if (*key_values_[index].second != *other_dict.key_values_[index].second) { in operator ==()
|
D | container.h | 135 : Object(kObjectTypeDictionary, false), key_values_(key_values) {} in Dictionary() 149 std::vector<std::pair<std::string, TypePtr>> key_values_; variable
|
/third_party/mindspore/mindspore/core/ir/ |
D | value.cc | 274 auto it = std::find_if(key_values_.begin(), key_values_.end(), in operator []() 276 if (it == key_values_.end()) { in operator []() 292 if (key_values_.size() != other.key_values_.size()) { in operator ==() 295 for (size_t index = 0; index < key_values_.size(); index++) { in operator ==() 296 if (key_values_[index].first != other.key_values_[index].first) { in operator ==() 299 if (!(*key_values_[index].second == *other.key_values_[index].second)) { in operator ==()
|
D | value.h | 161 …onary(const std::vector<std::pair<std::string, ValuePtr>> &key_values) : key_values_(key_values) {} 164 …hash() const override { return hash_combine(tid(), std::hash<std::size_t>{}(key_values_.size())); } 165 std::size_t size() const { return key_values_.size(); } 167 const std::vector<std::pair<std::string, ValuePtr>> &value() const { return key_values_; } 175 for (const auto &kv : key_values_) { 202 std::vector<std::pair<std::string, ValuePtr>> key_values_;
|
D | value_extends.cc | 81 key_values_.begin(), key_values_.end(), std::back_inserter(kv), in ToAbstract()
|
/third_party/mindspore/mindspore/core/abstract/ |
D | abstract_value.cc | 670 for (const auto &item : key_values_) { in BuildType() 679 if (key_values_.size() != other.key_values_.size()) { in operator ==() 683 for (size_t index = 0; index < key_values_.size(); index++) { in operator ==() 684 if (key_values_[index].first != other.key_values_[index].first) { in operator ==() 687 MS_EXCEPTION_IF_NULL(key_values_[index].second); in operator ==() 688 MS_EXCEPTION_IF_NULL(other.key_values_[index].second); in operator ==() 689 if (!(*key_values_[index].second == *other.key_values_[index].second)) { in operator ==() 709 (void)std::transform(key_values_.begin(), key_values_.end(), std::back_inserter(kv), in Clone() 719 (void)std::transform(key_values_.begin(), key_values_.end(), std::back_inserter(kv), in Broaden() 730 for (const auto &kv : key_values_) { in ToString() [all …]
|
D | abstract_value.h | 486 …explicit AbstractDictionary(const std::vector<AbstractAttribute> &key_values) : key_values_(key_va… in AbstractDictionary() 497 std::size_t size() const { return key_values_.size(); } in size() 498 const std::vector<AbstractAttribute> &elements() const { return key_values_; } in elements() 500 std::vector<AbstractAttribute> key_values_; variable
|