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

Function make_bundle

dnn/src/cambricon/elemwise/opr_impl.cpp:668–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666namespace {
667
668WorkspaceBundle make_bundle(
669 HandleImpl* handle, const SmallVector<size_t>& sizes_in_bytes) {
670 WorkspaceBundle wk_bundle{nullptr, sizes_in_bytes, handle->alignment_requirement()};
671 void* wk_ptr = handle->alloc(wk_bundle.total_size_in_bytes());
672 wk_bundle.set(wk_ptr);
673 return wk_bundle;
674}
675
676WorkspaceBundle get_unary_ws(
677 HandleImpl* handle, const TensorLayoutArray& src, const TensorLayout& dst,

Callers 15

execMethod · 0.85
execMethod · 0.85
get_unary_wsFunction · 0.85
get_binary_wsFunction · 0.85
get_ternary_wsFunction · 0.85
do_exec_ctMethod · 0.85
do_execMethod · 0.85

Calls 4

total_size_in_bytesMethod · 0.80
alignment_requirementMethod · 0.45
allocMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected