Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/core/utils/
Dhashing.h24 inline std::size_t hash_combine(std::size_t hash_sum, std::size_t hash_val) { in hash_combine() argument
26 return ((hash_sum << 6) + (hash_sum >> 2) + 0x9e3779b9 + hash_val) ^ hash_sum; in hash_combine()
30 std::size_t hash_sum = 0; in hash_combine() local
32 hash_sum = hash_combine(hash_sum, hash_val); in hash_combine()
34 return hash_sum; in hash_combine()
/third_party/mindspore/mindspore/core/abstract/
Dabstract_value.cc378 std::size_t hash_sum = hash_combine(tid(), std::hash<size_t>{}(elements_.size())); in hash() local
383 hash_sum = hash_combine(hash_sum, elements_[i]->hash()); in hash()
385 return hash_sum; in hash()
739 std::size_t hash_sum = std::accumulate(key_values_.begin(), key_values_.end(), tid(), in hash() local
740 [](std::size_t hash_sum, const AbstractAttribute &item) { in hash() argument
741hash_sum = hash_combine(hash_sum, std::hash<std::string>()(item.first)); in hash()
743 hash_sum = hash_combine(hash_sum, item.second->hash()); in hash()
744 return hash_sum; in hash()
746 return hash_sum; in hash()
883 …std::size_t hash_sum = std::accumulate(attributes_.begin(), attributes_.end(), hash_combine(tid(),… in hash() local
[all …]
Dabstract_function.cc129 std::size_t hash_sum = 0; in hash() local
132 hash_sum = hash_combine(hash_sum, f->hash()); in hash()
134 return hash_sum; in hash()
Dabstract_value.h343 auto hash_sum = hash_combine(tid(), element_->hash()); in hash() local
347 hash_sum = hash_combine(hash_sum, LongToSize(tensor->DataSize())); in hash()
350 return hash_sum; in hash()
/third_party/mindspore/mindspore/core/ir/
Ddtype_extends.cc34 std::size_t hash_sum = 0; in operator ()() local
37 hash_sum = hash_combine(hash_sum, type_id); in operator ()()
39 return hash_sum; in operator ()()