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

Method get_workspace_in_bytes

dnn/src/cambricon/topk/opr_impl.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53size_t TopKImpl::get_workspace_in_bytes(
54 int k, const TensorLayout& data, const TensorLayout& values,
55 const TensorLayout& indices) {
56 MEGDNN_MARK_USED_VAR(values);
57 MEGDNN_MARK_USED_VAR(indices);
58 return make_bundle(k, data, values, indices).total_size_in_bytes();
59}
60
61template <typename ctype>
62void TopKImpl::dispatch_with_ctype(

Callers

nothing calls this directly

Calls 2

make_bundleFunction · 0.85
total_size_in_bytesMethod · 0.80

Tested by

no test coverage detected