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

Function hash

imperative/src/impl/ops/utility.cpp:224–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224auto hash(const OpDef& def) {
225 auto& op = def.cast_final_safe<ShapeInfer>();
226 return op.op->hash();
227}
228
229auto is_same_st(const OpDef& def, const OpDef& another) {
230 if (!another.same_type<ShapeInfer>()) {

Callers 15

hashMethod · 0.70
hash_manyFunction · 0.70
update_hashFunction · 0.50
__hash__Method · 0.50
__hash__Method · 0.50
__hash__Method · 0.50
__hash__Method · 0.50
get_shape_hashFunction · 0.50
_op_sharding_hashMethod · 0.50
__hash__Method · 0.50
__hash__Method · 0.50
__hash__Method · 0.50

Calls 3

hash_pair_combineFunction · 0.50
hashMethod · 0.45
getMethod · 0.45

Tested by 1

test_oprmm_hashableFunction · 0.40