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

Method __copy__

imperative/python/megengine/traced_module/node.py:148–152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 cls.__total_id = id
147
148 def __copy__(self):
149 cls = self.__class__
150 result = cls.__new__(cls)
151 result.__dict__.update(self.__dict__)
152 return result
153
154 def __deepcopy__(self, memo):
155 cls = self.__class__

Callers

nothing calls this directly

Calls 2

__new__Method · 0.45
updateMethod · 0.45

Tested by

no test coverage detected