Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ inst
Function
inst
imperative/python/src/pyext17.h:130–130 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
128
#endif
129
130
inline T* inst() { return reinterpret_cast<T*>(&storage); }
131
132
inline static PyObject* pycast(T* ptr) {
133
return (PyObject*)((char*)ptr - offsetof(wrap_t, storage));
Callers
15
init_tensor
Function · 0.85
init_utils
Function · 0.85
make_custom_op
Function · 0.85
install_custom
Function · 0.85
uninstall_custom
Function · 0.85
get_custom_op_list
Function · 0.85
get_custom_op_lib_info
Function · 0.85
TEST
Function · 0.85
MGB_CATCH
Function · 0.85
record_event
Function · 0.85
device_wait_event
Function · 0.85
async_release
Function · 0.85
Calls
no outgoing calls
Tested by
11
TEST
Function · 0.68
TEST
Function · 0.68
TEST
Function · 0.68
run
Method · 0.68
TEST
Function · 0.68
TEST
Function · 0.68
ProfilerMock
Method · 0.68
~ProfilerMock
Method · 0.68
profile_operator
Method · 0.68
profile_var_node
Method · 0.68
TEST
Function · 0.68