| 25 | |
| 26 | template <typename ctype> |
| 27 | void FillImpl::exec_internal(ctype* dst, size_t size, CnnlTensorDescriptor& out_desc) { |
| 28 | auto value = static_cast<ctype>(param().value); |
| 29 | cnnlHandle_t h = cnnl_handle(this->handle()); |
| 30 | cnnl_check(cnnlFill_v3(h, CNNL_POINTER_MODE_HOST, &value, out_desc.desc(), dst)); |
| 31 | } |
| 32 | |
| 33 | } // namespace cambricon |
| 34 | } // namespace megdnn |
nothing calls this directly
no test coverage detected