echuraev commented on a change in pull request #8636:
URL: https://github.com/apache/tvm/pull/8636#discussion_r684124511
##########
File path: python/tvm/topi/cuda/conv2d_nhwc.py
##########
@@ -85,8 +87,10 @@ def schedule_conv2d_nhwc_direct(cfg, s, Conv):
thread_yz = te.thread_axis((0, vthread_n), "vthread", name="vy")
# Schedule for output
- ni, hi, wi, fi = s[output].op.axis
- bz = s[output].fuse(hi, wi)
+ ni, _, wi, fi = s[output].op.axis
+ bz = wi
+ fi, vec = s[output].split(fi, factor=vec_factor)
+ s[output].vectorize(vec)
Review comment:
Yes, it works. I added vectorize to the back of reorder list. Sorry, I'm
new in writing schedules, so, maybe I did something wrong :) I checked the
performance and accuracy on an OpenCL device, and it works fine and fast.
--
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]