TFLite Mobilenet model on intel_graphics - Incompatible broadcast dims


#1

model: mobilenet_v1_1.0_224.tflite
target: tvm.target.intel_graphics()
error:

[05:35:01] /root/tvm/src/relay/op/type_relations.cc:111: In1:TensorType([1, 1, 1, 1001], float32),In2:TensorType([1001], float32),Out:TensorType([1, 1, 1, 1001], float32)

Traceback (most recent call last):
  File "./compile.py", line 90, in <module>
    graph, lib, params = relay.build(func, target, target_host=target_host, params=params)
  File "/usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/relay/build_module.py", line 284, in build
    params)
  File "/usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/relay/build_module.py", line 112, in build
    self._build(func, target, target_host)
  File "/usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/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) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x59f8df) [0x7fed1006a8df]
  [bt] (7) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x5a492e) [0x7fed1006f92e]
  [bt] (6) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x5a46d3) [0x7fed1006f6d3]
  [bt] (5) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x59a024) [0x7fed10065024]
  [bt] (4) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x5a64f6) [0x7fed100714f6]
  [bt] (3) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x643b40) [0x7fed1010eb40]
  [bt] (2) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x637425) [0x7fed10102425]
  [bt] (1) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x603143) [0x7fed100ce143]
  [bt] (0) /usr/local/lib/python3.5/dist-packages/tvm-0.6.dev0-py3.5-linux-x86_64.egg/tvm/libtvm.so(+0x159bc2) [0x7fed0fc24bc2]
  File "/root/tvm/topi/include/topi/detail/broadcast.h", line 67
TVMError: Check failed: false: Incompatible broadcast dims: 1024 and 1001 in: [1, 1000, 1, 1024] and [1001]

#2

@FrozenGene Can you comment on it?


#3

Intel Graphics Only support NCHW too.