[TOPI] Raise exception group_conv2d_nchw not supported (#3195)
authorWuwei Lin <vincentl13x@gmail.com>
Thu, 16 May 2019 15:39:13 +0000 (23:39 +0800)
committerTianqi Chen <tqchen@users.noreply.github.com>
Thu, 16 May 2019 15:39:13 +0000 (08:39 -0700)
topi/python/topi/cuda/group_conv2d_nchw.py

index be4ae35..cbdb3cb 100644 (file)
@@ -346,6 +346,8 @@ def schedule_conv2d_nchw_cuda(cfg, outs):
     def _callback(op):
         if op.tag == "group_conv2d_NCHWc_int8":
             schedule_group_conv2d_NCHWc_int8(cfg, s, op.output(0))
+        if op.tag == "group_conv2d_nchw":
+            raise tvm.error.OpNotImplemented("group_conv2d_nchw not supported")
 
     traverse_inline(s, outs[0].op, _callback)
     return s