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

Method record_opnode

imperative/python/megengine/utils/naming.py:54–58  ·  view source on GitHub ↗
(cls, op)

Source from the content-addressed store, hash-verified

52
53 @classmethod
54 def record_opnode(cls, op):
55 ops = cls.name2ops.get(op.name, [])
56 if op not in ops:
57 ops.append(op)
58 cls.name2ops[op.name] = ops
59
60 @classmethod
61 def remove_duplicate_names(cls):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected