| 123 | public: |
| 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)); |
nothing calls this directly
no outgoing calls
no test coverage detected