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

Method hash

imperative/src/impl/ops/opr_attr.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166size_t OprAttr::hash() const {
167 return hash_pair_combine(
168 hash_pair_combine(
169 hash_pair_combine(
170 mgb::hash(type),
171 mgb::hash(static_cast<std::vector<char>>(param))),
172 hash_pair_combine(
173 static_cast<size_t>(policy.strategy),
174 policy.workspace_limit)),
175 config.hash());
176}
177
178std::shared_ptr<json::Value> OprAttr::mgb_param(OprFootprint* footprint) {
179 OprParamsLoadContext ctx{param, nullptr};

Callers 5

custom_opdef.cppFile · 0.45
hashFunction · 0.45
utility.cppFile · 0.45
ProxyGraphTypeIClass · 0.45

Calls 2

hashFunction · 0.70
hash_pair_combineFunction · 0.50

Tested by

no test coverage detected