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

Function get_custom_op_lib_info

imperative/python/src/ops.cpp:769–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769py::dict get_custom_op_lib_info(void) {
770#if MGB_CUSTOM_OP
771 auto&& libs = custom::CustomOpManager::inst()->lib_info();
772 py::dict ret;
773 for (auto&& [lib_name, lib_handle] : libs) {
774 py::list ops = py::cast(lib_handle->ops_in_lib());
775 ret[py::str(lib_name)] = ops;
776 }
777 return ret;
778#else
779 mgb_assert(false, "CustomOp disabled, please build megengine with CustomOp open");
780 return py::list{};
781#endif
782}
783
784#ifndef METH_FASTCALL
785PyObject* py35_make_custom_op(PyObject* self, PyObject* args) {

Callers

nothing calls this directly

Calls 3

instFunction · 0.85
castFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected