Fix (2/2) [TOPI] conv2d schedule code (#3648) (#3717)
authormingwayzhang <mingwayzhang@gmail.com>
Tue, 6 Aug 2019 22:20:08 +0000 (15:20 -0700)
committerThierry Moreau <moreau@uw.edu>
Tue, 6 Aug 2019 22:20:08 +0000 (15:20 -0700)
* Fix the tile_rx and tile_ry issue.

    Note that this patch depends on pull request #9 in tvm-distro.

python/tvm/autotvm/tophub.py
topi/python/topi/cuda/conv2d_direct.py

index 0130384..afe5cc7 100644 (file)
@@ -39,7 +39,7 @@ PACKAGE_VERSION = {
     'arm_cpu': "v0.04",
     'llvm':    "v0.03",
 
-    'cuda':    "v0.04",
+    'cuda':    "v0.05",
     'rocm':    "v0.02",
     'opencl':  "v0.02",
     'mali':    "v0.05",
index 2e76917..d647125 100644 (file)
@@ -90,8 +90,8 @@ def schedule_direct_cuda(cfg, s, conv):
     n, f, y, x = s[OL].op.axis
     rc, ry, rx = s[OL].op.reduce_axis
     rco, rci = cfg['tile_rc'].apply(s, OL, rc)
-    ryo, ryi = cfg['tile_rx'].apply(s, OL, ry)
-    rxo, rxi = cfg['tile_ry'].apply(s, OL, rx)
+    ryo, ryi = cfg['tile_ry'].apply(s, OL, ry)
+    rxo, rxi = cfg['tile_rx'].apply(s, OL, rx)
     s[OL].reorder(rco, ryo, rxo, rci, ryi, rxi, n, f, y, x)
 
     s[AA].compute_at(s[OL], rxo)