From 38e8c028fe69f0b28af54decae7fe3bef1bac557 Mon Sep 17 00:00:00 2001 From: "Boblest Sebastian (ETAS-DEV/XPC-Fe1)" Date: Wed, 2 Mar 2022 08:59:21 +0100 Subject: [PATCH 1/5] minor typo fixed --- src/printer/doc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/doc.cc b/src/printer/doc.cc index 4b22d54448c2..792c22420ae4 100644 --- a/src/printer/doc.cc +++ b/src/printer/doc.cc @@ -52,7 +52,7 @@ class DocText : public DocAtom { public: explicit DocText(std::string str) { if (str.find_first_of("\t\n") != str.npos) { - LOG(WARNING) << "text node: '" << str << "' should not has tab or newline."; + LOG(WARNING) << "text node: '" << str << "' should not have tab or newline."; } data_ = runtime::make_object(str); } From e442f6d0b8497fea9173e6c454e22fd7bb977537 Mon Sep 17 00:00:00 2001 From: "Boblest Sebastian (ETAS-DEV/XPC-Fe1)" Date: Wed, 2 Mar 2022 12:16:32 +0100 Subject: [PATCH 2/5] to trigger CI --- src/printer/doc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/doc.cc b/src/printer/doc.cc index 792c22420ae4..870f94f7ae81 100644 --- a/src/printer/doc.cc +++ b/src/printer/doc.cc @@ -52,7 +52,7 @@ class DocText : public DocAtom { public: explicit DocText(std::string str) { if (str.find_first_of("\t\n") != str.npos) { - LOG(WARNING) << "text node: '" << str << "' should not have tab or newline."; + LOG(WARNING) << "text node: '" << str << "' should not have tab or newline."; } data_ = runtime::make_object(str); } From d446489716fa8e334119cd41204a79a3c65ba027 Mon Sep 17 00:00:00 2001 From: "Boblest Sebastian (ETAS-DEV/XPC-Fe1)" Date: Wed, 2 Mar 2022 12:16:39 +0100 Subject: [PATCH 3/5] to trigger CI --- src/printer/doc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/doc.cc b/src/printer/doc.cc index 870f94f7ae81..792c22420ae4 100644 --- a/src/printer/doc.cc +++ b/src/printer/doc.cc @@ -52,7 +52,7 @@ class DocText : public DocAtom { public: explicit DocText(std::string str) { if (str.find_first_of("\t\n") != str.npos) { - LOG(WARNING) << "text node: '" << str << "' should not have tab or newline."; + LOG(WARNING) << "text node: '" << str << "' should not have tab or newline."; } data_ = runtime::make_object(str); } From 947918b94f11c581061902f16f10dc6daecc5e62 Mon Sep 17 00:00:00 2001 From: "Boblest Sebastian (ETAS-DEV/XPC-Fe1)" Date: Wed, 2 Mar 2022 12:33:39 +0100 Subject: [PATCH 4/5] fixed formatting issues --- python/tvm/topi/cuda/conv2d_transpose.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/tvm/topi/cuda/conv2d_transpose.py b/python/tvm/topi/cuda/conv2d_transpose.py index 3d308474bc50..38365ca7fa22 100644 --- a/python/tvm/topi/cuda/conv2d_transpose.py +++ b/python/tvm/topi/cuda/conv2d_transpose.py @@ -59,7 +59,8 @@ def conv2d_transpose_nchw(cfg, data, kernel, stride, padding, out_dtype, output_ stride_height, stride_width = stride outpad_height, outpad_width = output_padding assert outpad_height < stride_height and outpad_width < stride_width - assert inp_channels % groups == 0, f"input channels {inp_channels} must divide group size {groups}" + msg = f"input channels {inp_channels} must divide group size {groups}" + assert inp_channels % groups == 0, msg cfg.stride = stride pad_top, pad_left, pad_bottom, pad_right = nn.get_pad_tuple( padding, (kernel_height, kernel_width) @@ -113,7 +114,7 @@ def conv2d_transpose_nchw(cfg, data, kernel, stride, padding, out_dtype, output_ (batch, out_channels * groups, out_height, out_width), lambda b, c, h, w: te.sum( data[ - b, c // out_channels * (inp_channels // groups) + dc, h + dh, w + dw + b, c // out_channels * (inp_channels // groups) + dc, h + dh, w + dw ].astype(out_dtype) * kernel[ c // out_channels * (inp_channels // groups) + dc, From 2c5e0313c61f7d51b700cbe0b2239d94093bc0d2 Mon Sep 17 00:00:00 2001 From: "Boblest Sebastian (ETAS-DEV/XPC-Fe1)" Date: Wed, 2 Mar 2022 12:35:11 +0100 Subject: [PATCH 5/5] black formatted file --- python/tvm/topi/cuda/conv2d_transpose.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/tvm/topi/cuda/conv2d_transpose.py b/python/tvm/topi/cuda/conv2d_transpose.py index 38365ca7fa22..57fd2f5ede25 100644 --- a/python/tvm/topi/cuda/conv2d_transpose.py +++ b/python/tvm/topi/cuda/conv2d_transpose.py @@ -113,14 +113,14 @@ def conv2d_transpose_nchw(cfg, data, kernel, stride, padding, out_dtype, output_ data_out = te.compute( (batch, out_channels * groups, out_height, out_width), lambda b, c, h, w: te.sum( - data[ - b, c // out_channels * (inp_channels // groups) + dc, h + dh, w + dw - ].astype(out_dtype) + data[b, c // out_channels * (inp_channels // groups) + dc, h + dh, w + dw].astype( + out_dtype + ) * kernel[ c // out_channels * (inp_channels // groups) + dc, c % out_channels, kernel_height - 1 - dh, - kernel_width - 1 - dw + kernel_width - 1 - dw, ].astype(out_dtype), axis=[dc, dh, dw], ),