MCPcopy 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_tensorFunction · 0.85
init_utilsFunction · 0.85
make_custom_opFunction · 0.85
install_customFunction · 0.85
uninstall_customFunction · 0.85
get_custom_op_listFunction · 0.85
get_custom_op_lib_infoFunction · 0.85
TESTFunction · 0.85
MGB_CATCHFunction · 0.85
record_eventFunction · 0.85
device_wait_eventFunction · 0.85
async_releaseFunction · 0.85

Calls

no outgoing calls

Tested by 11

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
runMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
ProfilerMockMethod · 0.68
~ProfilerMockMethod · 0.68
profile_operatorMethod · 0.68
profile_var_nodeMethod · 0.68
TESTFunction · 0.68