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

Method check_exec

dnn/src/common/cvt_color.cpp:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void CvtColor::check_exec(
141 const TensorLayout& src, const TensorLayout& dst, size_t workspace_in_bytes) {
142 check_layout_fwd(src, dst);
143 megdnn_assert_contiguous(src);
144 auto required_workspace_in_bytes = get_workspace_in_bytes(src, dst);
145 megdnn_assert(workspace_in_bytes >= required_workspace_in_bytes);
146}
147
148} // namespace megdnn
149

Callers

nothing calls this directly

Calls 1

get_workspace_in_bytesFunction · 0.70

Tested by

no test coverage detected