thank you very much @eqy ! in the file of tvm/topi/python/topi/x86/depthwise_conv2d.py
line 209: new_kernel_shape = (out_channel // oc_bn, kh, kw, oc_bn) should have 6 values, but it has 4 values which causes this error.
because the function of the line 217: C = _depthwise_conv2d_NCHWc_cpu(cfg, new_data, new_kernel, strides, padding, dilation, data_layout, out_layout, dtype) where the new_kernel should have 6 values. so mismatch happened.
could you help looked into the issue? than you very much!
after I changed this line into new_kernel_shape = (out_channel // oc_bn,0, kh, kw,0, oc_bn) the autotunning passed, just for my case.
but there is another error occurred :
Traceback (most recent call last):
File “autotune_tensorflow_x86_mmnet_input.py”, line 252, in
net, target=target, params=params)
File “/home/dolphin/tvm/python/tvm/relay/build_module.py”, line 305, in build
graph_json, lowered_funcs, params = graph_gen.codegen(func)
File “/home/dolphin/tvm/python/tvm/relay/backend/graph_runtime_codegen.py”, line 90, in codegen
self._codegen(func)
File “/home/dolphin/tvm/python/tvm/_ffi/_ctypes/function.py”, line 209, in call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
[bt] (8) /home/dolphin/tvm/build/libtvm.so(+0xcf12c8) [0x7f3621bdf2c8]
[bt] (7) /home/dolphin/tvm/build/libtvm.so(+0xcebca6) [0x7f3621bd9ca6]
[bt] (6) /home/dolphin/tvm/build/libtvm.so(+0xcf12c8) [0x7f3621bdf2c8]
[bt] (5) /home/dolphin/tvm/build/libtvm.so(+0xcebca6) [0x7f3621bd9ca6]
[bt] (4) /home/dolphin/tvm/build/libtvm.so(+0xcf0e7a) [0x7f3621bdee7a]
[bt] (3) /home/dolphin/tvm/build/libtvm.so(+0xca6e7f) [0x7f3621b94e7f]
[bt] (2) /home/dolphin/tvm/build/libtvm.so(+0xcadf4c) [0x7f3621b9bf4c]
[bt] (1) /home/dolphin/tvm/build/libtvm.so(+0xcad424) [0x7f3621b9b424]
[bt] (0) /home/dolphin/tvm/build/libtvm.so(+0xf4db0b) [0x7f3621e3bb0b]
File “/home/dolphin/tvm/python/tvm/_ffi/_ctypes/function.py”, line 71, in cfun
rv = local_pyfunc(*pyargs)
File “/home/dolphin/tvm/python/tvm/relay/op/nn/_nn.py”, line 165, in schedule_conv2d
return topi.generic.schedule_depthwise_conv2d_nchw(outs)
File “</home/dolphin/.local/lib/python3.5/site-packages/decorator.py:decorator-gen-57>”, line 2, in schedule_depthwise_conv2d_nchw
File “/home/dolphin/tvm/python/tvm/target.py”, line 372, in dispatch_func
return dispatch_dict[k](*args, **kwargs)
File “</home/dolphin/.local/lib/python3.5/site-packages/decorator.py:decorator-gen-151>”, line 2, in config_dispatcher
File “/home/dolphin/tvm/python/tvm/autotvm/task/dispatcher.py”, line 220, in dispatch_func
return dispatch_dict[cfg.template_key](cfg, *args, **kwargs)
File “/home/dolphin/tvm/python/tvm/autotvm/task/topi_integration.py”, line 437, in template_call
return f(cfg, outs, *args, **kwargs)
File “/home/dolphin/tvm/topi/python/topi/arm_cpu/depthwise_conv2d.py”, line 151, in schedule_depthwise_conv2d_nchw_arm
traverse_inline(s, outs[0].op, _callback)
File “/home/dolphin/tvm/topi/python/topi/util.py”, line 51, in traverse_inline
_traverse(final_op)
File “/home/dolphin/tvm/topi/python/topi/util.py”, line 49, in _traverse
callback(op)
File “/home/dolphin/tvm/topi/python/topi/arm_cpu/depthwise_conv2d.py”, line 135, in _callback
_schedule(cfg, s, data, data_pad, kernel, output)
File “/home/dolphin/tvm/topi/python/topi/arm_cpu/depthwise_conv2d.py”, line 75, in _schedule
c, vc = cfg[‘tile_c’].apply(s, A0, c)
File “/home/dolphin/tvm/python/tvm/autotvm/task/space.py”, line 773, in getitem
return self._entity_map[name]
KeyError: ‘tile_c’