Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ get_name
Function
get_name
imperative/python/test/unit/utils/test_module_stats.py:96–97 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
94
params = stats_detail.params
95
96
def
get_name(obj):
97
return
obj[
"name"
]
98
99
param_names = list(map(get_name, params))
100
assert
"conv1-w"
in param_names and
"conv1-b"
in param_names
Callers
2
process_one_task
Method · 0.85
print_memory_state
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected