| 204 | } |
| 205 | |
| 206 | std::shared_ptr<Module> make(int32_t node_id, |
| 207 | const JsonParam &json_param) override { |
| 208 | StatTimer timer(bmf_stat_enabled()); |
| 209 | py::gil_scoped_acquire gil; |
| 210 | auto [module_cls, _] = factory_(); |
| 211 | auto module = std::make_shared<bmf_sdk::PyModule>(module_cls, node_id, |
| 212 | json_param); |
| 213 | module->create_time_ = timer.elapsed(); |
| 214 | return module; |
| 215 | } |
| 216 | |
| 217 | const bool module_info(ModuleInfo &info) const override { |
| 218 | auto [_, module_register] = factory_(); |
no test coverage detected