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

Method get_workspace_in_bytes

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

Source from the content-addressed store, hash-verified

186}
187
188size_t MaskConvForwardImpl::get_workspace_in_bytes(
189 const TensorLayout& src, const TensorLayout& filter, const TensorLayout& mask,
190 const TensorLayout& dst) {
191 megdnn_ignore(mask);
192 size_t OC = filter[0], IC = filter[1], IH = src[2], IW = src[3], OH = dst[2],
193 OW = dst[3], FH = filter[2], FW = filter[3], PH = param().pad_h,
194 PW = param().pad_w;
195 auto wbundle = get_wbundle(OC, OH, OW, IC, IH, IW, FH, FW, PH, PW);
196 return wbundle.total_size_in_bytes();
197}
198
199} // namespace fallback
200} // namespace megdnn

Callers 1

get_wbundleMethod · 0.45

Calls 3

total_size_in_bytesMethod · 0.80
paramFunction · 0.50
get_wbundleFunction · 0.50

Tested by

no test coverage detected