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

Method check_exec

dnn/src/common/matrix_inverse.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void MatrixInverse::check_exec(
51 const TensorLayout& src, const TensorLayout& dst, _megdnn_workspace workspace,
52 size_t* batch, size_t* n) {
53 canonize_params(src, batch, n);
54 megdnn_assert(
55 src.eq_layout(dst), "src and dst unequal: %s vs %s",
56 src.to_string().c_str(), dst.to_string().c_str());
57 megdnn_assert(
58 workspace.size >= get_workspace_in_bytes(*batch, *n, src.dtype.size()));
59}
60
61// vim: syntax=cpp.doxygen

Callers

nothing calls this directly

Calls 4

eq_layoutMethod · 0.80
get_workspace_in_bytesFunction · 0.70
to_stringMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected