kernel gen
| 29 | } |
| 30 | //! kernel gen |
| 31 | std::string PoolingImpl::GetKernelSymbol(TContext* context) const { |
| 32 | std::stringstream ss; |
| 33 | ss << "kernel_pooling"; |
| 34 | ss << "_" << context->getAttrStr("mode"); |
| 35 | ss << "_" << context->getAttrStr("format"); |
| 36 | ss << "_p" << context->getAttrInt("pad_h") << "x" << context->getAttrInt("pad_w"); |
| 37 | ss << "_s" << context->getAttrInt("stride_h") << "x" |
| 38 | << context->getAttrInt("stride_w"); |
| 39 | ss << "_w" << context->getAttrInt("window_h") << "x" |
| 40 | << context->getAttrInt("window_w"); |
| 41 | ss << "_" << SymbolHelper::gen_io_str(context); |
| 42 | return ss.str(); |
| 43 | } |
| 44 | |
| 45 | namespace { |
| 46 |
nothing calls this directly
no test coverage detected