| 6 | namespace { |
| 7 | template <typename Param> |
| 8 | std::string get_errmsg( |
| 9 | const TensorLayout& src, const TensorLayout& filter, const TensorLayout& dst, |
| 10 | const Param& param) { |
| 11 | MEGDNN_MARK_USED_VAR(src); |
| 12 | MEGDNN_MARK_USED_VAR(filter); |
| 13 | MEGDNN_MARK_USED_VAR(dst); |
| 14 | return megdnn_layout_msg(src) + ", " + megdnn_layout_msg(filter) + ", " + |
| 15 | megdnn_layout_msg(dst) + ", " + "is_nchw=" + |
| 16 | std::to_string(param.format == param::Convolution::Format::NCHW) + ", " + |
| 17 | "is_xcorr=" + |
| 18 | std::to_string((param.mode == Convolution::Mode::CROSS_CORRELATION)) + ", " + |
| 19 | "pad_h=" + std::to_string(param.pad_h) + ", " + |
| 20 | "pad_w=" + std::to_string(param.pad_w) + ", " + |
| 21 | "stride_h=" + std::to_string(param.stride_h) + ", " + |
| 22 | "stride_w=" + std::to_string(param.stride_w) + ", " + |
| 23 | "dilate_h=" + std::to_string(param.dilate_h) + ", " + |
| 24 | "dilate_w=" + std::to_string(param.dilate_w); |
| 25 | } |
| 26 | |
| 27 | template <typename Param, typename Param::Format> |
| 28 | uint32_t spatial_getter(uint32_t filter, const Param&) { |
no test coverage detected