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

Function index_to_dst

dnn/src/fallback/mask_conv/opr_impl.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void index_to_dst(
57 const float* result, float* dst, const size_t OC, const size_t OH,
58 const size_t OW, unsigned int* maskInd, const size_t maskN) {
59 const float* addr = result;
60 rep(oc, OC) rep(ind, maskN) {
61 size_t oh = maskInd[ind] >> 16;
62 size_t ow = maskInd[ind] & 0xFFFF;
63 dst[oc * OH * OW + oh * OW + ow] = *addr++;
64 }
65}
66
67template <typename ctype>
68void exec_internel(

Callers 1

repFunction · 0.85

Calls 1

repFunction · 0.70

Tested by

no test coverage detected