MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / update_hash

Function update_hash

imperative/python/megengine/utils/custom_op_tools.py:181–184  ·  view source on GitHub ↗
(seed, value)

Source from the content-addressed store, hash-verified

179
180
181def update_hash(seed, value):
182 # using boost::hash_combine
183 # https://www.boost.org/doc/libs/1_35_0/doc/html/boost/hash_combine_id241013.html
184 return seed ^ (hash(value) + 0x9E3779B9 + (seed << 6) + (seed >> 2))
185
186
187def hash_source_files(hash_value, source_files):

Callers 3

hash_source_filesFunction · 0.85
hash_build_argsFunction · 0.85

Calls 1

hashFunction · 0.50

Tested by

no test coverage detected