MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_errmsg

Function get_errmsg

dnn/src/common/convolution.cpp:8–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace {
7template <typename Param>
8std::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
27template <typename Param, typename Param::Format>
28uint32_t spatial_getter(uint32_t filter, const Param&) {

Callers 3

deduce_layout_fwdMethod · 0.70
deduce_layoutMethod · 0.70
deduce_layout_implMethod · 0.70

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected