Skip to content

Commit 42aa91b

Browse files
committed
Lint
1 parent 0b6ff71 commit 42aa91b

File tree

4 files changed

+1
-94
lines changed

4 files changed

+1
-94
lines changed

python/tvm/dlight/adreno/convolution.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ def schedule_conv2d(sch: tir.Schedule, blk: tir.schedule.BlockRV):
3434
# TODO: Loop Pattern mayn't be reliable, need to perform better analysis.
3535
n, oc, oh, ow, ob, ic, kh, kw = sch.get_loops(blk)
3636

37-
# bz, vz, tz = sch.split(oc, sch.sample_perfect_tile(oc, 3, 32))
38-
# by, vy, ty = sch.split(oh, sch.sample_perfect_tile(oh, 3, 32))
39-
# bx, vx, tx = sch.split(ow, sch.sample_perfect_tile(ow, 3, 32))
40-
4137
bz, vz, tz = sch.split(oc, [None, 8, 1], preserve_unit_iters=True)
4238
by, vy, ty = sch.split(oh, [None, 1, 16], preserve_unit_iters=True)
4339
bx, vx, tx = sch.split(ow, [None, 1, 16], preserve_unit_iters=True)
@@ -97,7 +93,6 @@ def is_convolution(blk):
9793
if len(reduction_blocks) != 1 or not is_convolution(reduction_blocks[0]):
9894
return None
9995

100-
# sch.set_scope(blocks[0], 0, "global.texture")
10196
conv_blk = reduction_blocks[0]
10297
Conv2d.schedule_conv2d(sch, conv_blk)
10398
remaining_blocks = schedule_inline_blocks(sch, remaining_blocks)

python/tvm/dlight/adreno/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ def schedule_max_pool(blk: tir.schedule.BlockRV):
8787
sch.reverse_compute_inline(blk)
8888
else:
8989
sch.compute_inline(blk)
90-
except Exception: # pylint: broad-exception-caught
90+
except Exception: # pylint: disable=broad-except
9191
pass
9292
return sch

python/tvm/dlight/analysis/common_analysis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def __repr__(self) -> str:
7272
BufIndex = List[Union[Index, RemIndex, DivIndex, MergeIndex, None]]
7373

7474

75-
# TODO: Shift Vlen Calculation here...
7675
class BufferInfo:
7776
"Information about Buffer. Provides useful analysis"
7877
buf_region: tir.BufferRegion

tests/python/tir-transform/test_tir_transform_inject_texture_alloc.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)