Anndrey24 commented on code in PR #15648:
URL: https://github.com/apache/tvm/pull/15648#discussion_r1315722536


##########
python/tvm/topi/arm_cpu/conv2d_gemm.py:
##########
@@ -326,7 +328,12 @@ def schedule_conv2d_gemm_interleaved(cfg, s, out, 
final_out):
 
     b, m, n = data_im2col.op.axis
     if data_im2col.op.name == "data_im2col":
-        n_outer, n_inner = s[data_im2col].split(n, 16)
+        n_size = data_im2col.shape[2]
+        if n_size % 16 == 0:
+            split_factor = 16
+        else:
+            split_factor = 8
+        n_outer, n_inner = s[data_im2col].split(n, split_factor)

Review Comment:
   That does make more sense. I'll split it out into a separate PR



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to