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

Method check_exec

dnn/src/common/indexing_one_hot.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void IndexingOneHotForward::check_exec(
57 const TensorLayout& src, const TensorLayout& index, const TensorLayout& dst,
58 size_t workspace_in_bytes) {
59 check_layout_fwd(src, index, dst);
60 auto required_workspace_in_bytes = get_workspace_in_bytes(src, index, dst);
61 megdnn_assert(workspace_in_bytes >= required_workspace_in_bytes);
62}
63
64void IndexingSetOneHotForward::check_exec(
65 const TensorLayout& data, const TensorLayout& index, const TensorLayout& sub,

Callers

nothing calls this directly

Calls 1

get_workspace_in_bytesFunction · 0.70

Tested by

no test coverage detected