MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / init

Method init

src/GraphCtrl/GraphParam/GParamManager.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23CStatus GParamManager::init() {
24 CGRAPH_FUNCTION_BEGIN
25 for (auto& param : params_map_) {
26 /**
27 * 一般情况下,是不需要init的。需要注意init 和 setup的执行阶段的信息
28 * init() 是在pipeline init的时候被执行的
29 * setup() 是在pipeline run开始的时候被执行的
30 */
31 CGRAPH_ASSERT_NOT_NULL(param.second);
32 status += param.second->init();
33 }
34 CGRAPH_FUNCTION_END
35}
36
37
38CStatus GParamManager::destroy() {

Callers 1

forFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected