MCPcopy Create free account
hub / github.com/MegEngine/MegCC / ParamHelper

Method ParamHelper

compiler/tools/kernel_exporter/config_attr.cpp:125–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123public:
124 using Param = typename Opr::Param;
125 ParamHelper() {
126 megcore_check(megcoreCreateDeviceHandle(&m_device_handle, megcorePlatformCPU));
127 megcore_check(megcoreCreateComputingHandle(&m_compute_handle, m_device_handle));
128 m_dnn_handle = megdnn::Handle::make(m_compute_handle, 2);
129 }
130
131 ~ParamHelper() {
132 megcore_check(megcoreDestroyComputingHandle(m_compute_handle));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected