| 745 | } |
| 746 | |
| 747 | py::list uninstall_custom(const std::string& name) { |
| 748 | #if MGB_CUSTOM_OP |
| 749 | const auto& ops_in_lib = custom::CustomOpManager::inst()->uninstall(name); |
| 750 | py::list ret = py::cast(ops_in_lib); |
| 751 | return ret; |
| 752 | #else |
| 753 | mgb_assert(false, "CustomOp disabled, please build megengine with CustomOp open"); |
| 754 | return false; |
| 755 | #endif |
| 756 | } |
| 757 | |
| 758 | py::list get_custom_op_list(void) { |
| 759 | #if MGB_CUSTOM_OP |