Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.py
File · 0.45
main
Function · 0.45
load
Method · 0.45
reset_batch_size
Method · 0.45
dump
Method · 0.45
topological_sort
Function · 0.45
iterative_pruning
Function · 0.45
reorder_oprs_seq
Function · 0.45
find_vars_by_name
Function · 0.45
module_stats
Function · 0.45
release
Method · 0.45
__setattr__
Method · 0.45
Calls
no outgoing calls
Tested by
3
test_save_load
Function · 0.36
mkstemp
Function · 0.36
test_module_api_hooks
Function · 0.36