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

Method get_workspace_in_bytes

dnn/src/cuda/cond_take/opr_impl.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23size_t CondTakeImpl::get_workspace_in_bytes(
24 const TensorLayout& data, const TensorLayout&) {
25 return make_bundle(data.total_nr_elems()).total_size_in_bytes();
26}
27
28CondTakeImpl::Output CondTakeImpl::exec(
29 _megdnn_tensor_in data, _megdnn_tensor_in mask, _megdnn_workspace workspace,

Callers

nothing calls this directly

Calls 3

make_bundleFunction · 0.85
total_size_in_bytesMethod · 0.80
total_nr_elemsMethod · 0.45

Tested by

no test coverage detected