kernel gen
| 25 | |
| 26 | //! kernel gen |
| 27 | std::string BatchedMatrixMulKernel::GetKernelSymbol(TContext* context) const { |
| 28 | std::stringstream ss; |
| 29 | ss << "kernel_batched_matmul_"; |
| 30 | if (context->getAttrBool("transposeA")) { |
| 31 | ss << "t"; |
| 32 | } else { |
| 33 | ss << "n"; |
| 34 | } |
| 35 | if (context->getAttrBool("transposeB")) { |
| 36 | ss << "t"; |
| 37 | } else { |
| 38 | ss << "n"; |
| 39 | } |
| 40 | ss << "_" << context->getAttrOprand("operand:0").dtype; |
| 41 | return ss.str(); |
| 42 | } |
| 43 | |
| 44 | namespace { |
| 45 | std::string emit_k(bool trans_a) { |
nothing calls this directly
no test coverage detected