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

Method remove

imperative/python/megengine/utils/hook.py:13–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 self.source_ref = weakref.ref(source_dict)
12
13 def remove(self):
14 source_dict = self.source_ref()
15 if source_dict is not None and self.id in source_dict:
16 del source_dict[self.id]

Callers 15

setup.pyFile · 0.45
mainFunction · 0.45
loadMethod · 0.45
reset_batch_sizeMethod · 0.45
dumpMethod · 0.45
topological_sortFunction · 0.45
iterative_pruningFunction · 0.45
reorder_oprs_seqFunction · 0.45
find_vars_by_nameFunction · 0.45
module_statsFunction · 0.45
releaseMethod · 0.45
__setattr__Method · 0.45

Calls

no outgoing calls

Tested by 3

test_save_loadFunction · 0.36
mkstempFunction · 0.36
test_module_api_hooksFunction · 0.36