Skip to content

Commit

Permalink
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op la…
Browse files Browse the repository at this point in the history
…yout issue. (apache#2861)

* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.

* Update tune_relay_arm.py
  • Loading branch information
FrozenGene authored and Laurawly committed Mar 27, 2019
1 parent b45b68d commit e3fb049
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion python/tvm/relay/op/nn/_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/autotvm/tune_relay_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_network(name, batch_size):
'log_filename': log_file,

'tuner': 'xgb',
'n_trial': 1000,
'n_trial': 1500,
'early_stopping': 800,

'measure_option': autotvm.measure_option(
Expand Down

0 comments on commit e3fb049

Please sign in to comment.