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

Function get_custom_op_list

imperative/python/src/ops.cpp:758–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758py::list get_custom_op_list(void) {
759#if MGB_CUSTOM_OP
760 std::vector<std::string> all_ops = custom::CustomOpManager::inst()->op_name_list();
761 py::list ret = py::cast(all_ops);
762 return ret;
763#else
764 mgb_assert(false, "CustomOp disabled, please build megengine with CustomOp open");
765 return py::list{};
766#endif
767}
768
769py::dict get_custom_op_lib_info(void) {
770#if MGB_CUSTOM_OP

Callers

nothing calls this directly

Calls 3

instFunction · 0.85
castFunction · 0.85
op_name_listMethod · 0.80

Tested by

no test coverage detected