MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / exec_internal

Method exec_internal

dnn/src/cambricon/fill/opr_impl.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <typename ctype>
27void 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

Callers

nothing calls this directly

Calls 4

cnnl_handleFunction · 0.85
paramFunction · 0.50
handleMethod · 0.45
descMethod · 0.45

Tested by

no test coverage detected