Skip to content

Commit 6bb3b44

Browse files
committed
lint
1 parent 7d3889d commit 6bb3b44

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

python/tvm/dlight/cpu/gemv.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ class GEMV(CPUScheduleRule):
145145
"""A rule for GEMV and DecodeGEMV."""
146146

147147
def apply( # pylint: disable=too-many-locals,too-many-branches,too-many-return-statements
148-
self,
149-
func: tir.PrimFunc,
150-
target: Target,
151-
_: bool,
148+
self,
149+
func: tir.PrimFunc,
150+
target: Target,
151+
_: bool,
152152
) -> Union[None, tir.Schedule, List[tir.Schedule]]:
153153
if not isinstance(func, tir.PrimFunc) or not self.is_target_available(target):
154154
return None
@@ -211,7 +211,7 @@ def apply(
211211
gemv,
212212
vector_width: int = 8,
213213
parallel_threads: int = 8,
214-
unroll_factor: int = 256
214+
unroll_factor: int = 256,
215215
):
216216
batch, s, r, c = sch.get_loops(block)
217217
len_batch, len_s, len_r, len_c = (

python/tvm/dlight/cpu/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ def auto_vectorize(sch: tir.Schedule, loop: tir.schedule.LoopRV, max_vec: int):
4040
return
4141
v = loop if extent <= max_vec else sch.split(loop, factors=[None, max_vec])[-1]
4242
sch.vectorize(v)
43-

0 commit comments

Comments
 (0)