| 756 | } |
| 757 | |
| 758 | py::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 | |
| 769 | py::dict get_custom_op_lib_info(void) { |
| 770 | #if MGB_CUSTOM_OP |
nothing calls this directly
no test coverage detected