| 41 | } |
| 42 | |
| 43 | std::string ElemwiseKernel::GetKernelSymbol(TContext* context) const { |
| 44 | std::stringstream ss; |
| 45 | ss << "mlir_auto_elementwise"; |
| 46 | ss << "_" << context->getAttrStr("mode"); |
| 47 | ss << "_" << context->getAttrOprand("operand:0").shape.size(); |
| 48 | return ss.str(); |
| 49 | } |
| 50 | |
| 51 | void ElemwiseKernel::CreateCompute( |
| 52 | Block* entryBlock, mlir::OpBuilder& op_builder, mlir::MLIRContext* ctx, |
nothing calls this directly
no test coverage detected