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

Function get_wbundle

dnn/src/rocm/checksum/opr_impl.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

execMethod · 0.70
execMethod · 0.50
get_workspace_sizeMethod · 0.50
get_kernsMethod · 0.50

Calls 1

get_workspace_in_bytesFunction · 0.50

Tested by

no test coverage detected