| 48 | } |
| 49 | |
| 50 | void 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 |
nothing calls this directly
no test coverage detected