kernel gen
| 80 | |
| 81 | //! kernel gen |
| 82 | std::string ReduceKernel::GetKernelSymbol(TContext* context) const { |
| 83 | std::stringstream ss; |
| 84 | ss << "kernel_reduce"; |
| 85 | ss << "_" << context->getAttrStr("mode"); |
| 86 | ss << "_" << context->getAttrStr("data_type"); |
| 87 | ss << "_a" << context->getAttrInt("axis"); |
| 88 | ss << "_" << SymbolHelper::gen_io_str(context); |
| 89 | return ss.str(); |
| 90 | } |
| 91 | |
| 92 | std::string ReduceKernel::GetKernelBody(TContext* context) const { |
| 93 | auto mode = context->getAttrStr("mode"); |
nothing calls this directly
no test coverage detected