MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / impl

Function impl

imperative/python/src/pyext17.h:168–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 static constexpr int flags = METH_NOARGS;
167
168 static PyObject* impl(PyObject* self, PyObject*) {
169 auto* inst = reinterpret_cast<wrap_t*>(self)->inst();
170 try {
171 CVT_RET_PYOBJ((inst->*f)());
172 }
173 PYEXT17_TRANSLATE_EXC_RET(nullptr)
174 }
175 };
176
177 template <auto f>
178 struct meth<meth_type::varkw, f> {

Callers 15

impl_py35Method · 0.70
operator()Method · 0.50
get_workspace_limitMethod · 0.50
memcpy_noncontigFunction · 0.50
load_helperFunction · 0.50
load_helper_xFunction · 0.50
calculate_xsx_nchw88Function · 0.50
repFunction · 0.50

Calls 1

instMethod · 0.45

Tested by 1

memcpy_noncontigFunction · 0.40