[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue....
authorZhao Wu <wuzhaozju@gmail.com>
Tue, 26 Mar 2019 11:17:47 +0000 (19:17 +0800)
committerLianmin Zheng <lianminzheng@gmail.com>
Tue, 26 Mar 2019 11:17:47 +0000 (19:17 +0800)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.

* Update tune_relay_arm.py

python/tvm/relay/op/nn/_nn.py
tutorials/autotvm/tune_relay_arm.py

index 958aabd..da58e93 100644 (file)
@@ -85,7 +85,6 @@ def compute_conv2d(attrs, inputs, out_type, target):
             inputs[0], inputs[1], strides, padding,
             dilation, layout, out_dtype=out_dtype)
     elif layout == "NCHW" and \
-         kernel_layout == "OIHW" and \
          get_const_int(inputs[1].shape[0]) == groups and \
          get_const_int(inputs[1].shape[1]) == 1:
         out = topi.nn.depthwise_conv2d_nchw(
index 266a153..b56cb1f 100644 (file)
@@ -186,7 +186,7 @@ tuning_option = {
     'log_filename': log_file,
 
     'tuner': 'xgb',
-    'n_trial': 1000,
+    'n_trial': 1500,
     'early_stopping': 800,
 
     'measure_option': autotvm.measure_option(