Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ dynamic_cast
Function
dynamic_cast
scripts/gdb/commands.py:18–21 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
16
17
18
def
dynamic_cast(val):
19
assert val.type.code == gdb.TYPE_CODE_REF
20
val = val.cast(val.dynamic_type)
21
return
val
22
23
24
def
eval_on_val(val, eval_str):
Callers
1
print_mge_frame
Function · 0.70
Calls
1
cast
Method · 0.45
Tested by
no test coverage detected