| 152 | ///////////////////////////////////////////////////////////////////////////////////////////////// |
| 153 | |
| 154 | Operation const* OperationTable::find_op(GemmKey const& key) const { |
| 155 | if (gemm_operations.count(key)) { |
| 156 | auto const& ops = gemm_operations.at(key); |
| 157 | megdnn_assert( |
| 158 | ops.size() == 1, "exactly one kernel expected, got %zu", ops.size()); |
| 159 | return ops[0]; |
| 160 | } |
| 161 | return nullptr; |
| 162 | } |
| 163 | |
| 164 | ///////////////////////////////////////////////////////////////////////////////////////////////// |
| 165 |
no test coverage detected