Skip to content

Commit 3d468cf

Browse files
committed
Fix lint
1 parent edd94cb commit 3d468cf

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

python/tvm/topi/adreno/conv2d_nchw_winograd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,6 @@ def conv2d_nchw_winograd_comp(
137137
output: tvm.te.Tensor
138138
4-D or 5-D with shape NCHW or NCHW4c
139139
"""
140-
return conv2d_winograd_comp(cfg, data, kernel, strides, padding, dilation, out_dtype, args, pre_computed, "NCHW")
140+
return conv2d_winograd_comp(
141+
cfg, data, kernel, strides, padding, dilation, out_dtype, args, pre_computed, "NCHW"
142+
)

python/tvm/topi/adreno/conv2d_nhwc_winograd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,6 @@ def conv2d_nhwc_winograd_comp(
137137
output: tvm.te.Tensor
138138
4-D or 5-D with shape NCHW or NCHW4c
139139
"""
140-
return conv2d_winograd_comp(cfg, data, kernel, strides, padding, dilation, out_dtype, args, pre_computed, "NHWC")
140+
return conv2d_winograd_comp(
141+
cfg, data, kernel, strides, padding, dilation, out_dtype, args, pre_computed, "NHWC"
142+
)

python/tvm/topi/adreno/conv2d_winograd_common.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ def conv2d_winograd_comp(
301301
else:
302302
output = te.compute(
303303
(N, CO, H, W, COB),
304-
lambda n, co, h, w, cob: inverse[co][n * nH * nW + idxdiv(h, m) * nW + idxdiv(w, m)][
305-
idxmod(h, m)
306-
][idxmod(w, m)][cob].astype(out_dtype),
304+
lambda n, co, h, w, cob: inverse[co][
305+
n * nH * nW + idxdiv(h, m) * nW + idxdiv(w, m)
306+
][idxmod(h, m)][idxmod(w, m)][cob].astype(out_dtype),
307307
name="output",
308308
tag="cast_from_acc" + args["accumulator"][-2:],
309309
)
@@ -320,9 +320,9 @@ def conv2d_winograd_comp(
320320
else:
321321
output = te.compute(
322322
(N, H, W, CO, COB),
323-
lambda n, h, w, co, cob: inverse[co][n * nH * nW + idxdiv(h, m) * nW + idxdiv(w, m)][
324-
idxmod(h, m)
325-
][idxmod(w, m)][cob].astype(out_dtype),
323+
lambda n, h, w, co, cob: inverse[co][
324+
n * nH * nW + idxdiv(h, m) * nW + idxdiv(w, m)
325+
][idxmod(h, m)][idxmod(w, m)][cob].astype(out_dtype),
326326
name="output",
327327
tag="cast_from_acc" + args["accumulator"][-2:],
328328
)

0 commit comments

Comments
 (0)