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

Function get_wbundle

dnn/src/cuda/checksum/opr_impl.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace {
13
14WorkspaceBundle get_wbundle(const TensorLayout& data) {
15 size_t size_all = data.shape[0], size_ints = size_all / sizeof(uint32_t);
16 size_t part1 = checksum::get_workspace_in_bytes(size_ints);
17 size_t part2 = sizeof(ChecksumForward::Result::checksum);
18 return {nullptr, {part1, part2}};
19}
20
21} // anonymous namespace
22

Callers 2

execMethod · 0.70

Calls 1

get_workspace_in_bytesFunction · 0.50

Tested by

no test coverage detected