MCPcopy Create free account
hub / github.com/BabitMF/bmf / make

Method make

bmf/engine/c_engine/src/loader/py_module_loader.cpp:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_();

Callers 1

create_moduleMethod · 0.45

Calls 2

bmf_stat_enabledFunction · 0.85
elapsedMethod · 0.45

Tested by

no test coverage detected