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

Function get_bundle

dnn/src/fallback/warp_perspective/opr_impl.cpp:17–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace megdnn;
16
17WorkspaceBundle get_bundle(size_t OH, size_t OW) {
18 WorkspaceBundle bundle(
19 nullptr, {// tabsh0
20 sizeof(int) * OH,
21 // tabsh1
22 sizeof(int) * OH,
23 // tabsw0
24 sizeof(int) * OW,
25 // tabsw1
26 sizeof(int) * OW,
27 // tabrh
28 sizeof(float) * OH,
29 // tabrw
30 sizeof(float) * OW,
31 // cache0
32 sizeof(float) * OW,
33 // cache1
34 sizeof(float) * OW});
35 return bundle;
36}
37
38} // anonymous namespace
39

Callers 2

kern_resizeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected