I think I'm facing the same error.

First, I merged the code from [Dynamic NMS and 
strided_slice](https://github.com/apache/incubator-tvm/pull/4312/) to support 
importing model [TensorFlow model: 
ssd_resnet_50_fpn_coco](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md)

Then I met the following error:

Traceback (most recent call last):

  File "/incubator-tvm/tutorials/ssd_resnet34_tf.py", line 37, in <module>
    mod, params = relay.frontend.from_tensorflow(graph_def, layout=layout)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3344, in 
from_tensorflow
    mod, params = g.from_tensorflow(graph, layout, shape, outputs)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 2907, in 
from_tensorflow
    self._backtrack_construct(node.name)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3284, in 
_backtrack_construct
    self._control_flow_node_map)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3170, in 
_convert_control_flow_operator
    op = self._backtrack_construct(node.input[0])

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3291, in 
_backtrack_construct
    in_op = self._backtrack_construct(iname)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3291, in 
_backtrack_construct
    in_op = self._backtrack_construct(iname)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3291, in 
_backtrack_construct
    in_op = self._backtrack_construct(iname)

  [Previous line repeated 94 more times]

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3300, in 
_backtrack_construct
    op = self._convert_operator(node.op, inputs, attr, self._graph)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 3243, in 
_convert_operator
    sym = convert_map[op_name](inputs, attrs, self._params, self._prelude)

  File "/incubator-tvm/python/tvm/relay/frontend/tensorflow.py", line 950, in 
_impl
    input_shape = get_tensor_array_shape(inputs[2], dtype_str, prelude)

  File "/incubator-tvm/python/tvm/relay/prelude.py", line 54, in 
get_tensor_array_shape
    mod["main"] = Function([], expr)

  File "/incubator-tvm/python/tvm/ir/module.py", line 74, in __setitem__
    return self._add(var, val)

  File "/incubator-tvm/python/tvm/ir/module.py", line 83, in _add
    _ffi_api.Module_Add(self, var, val, update)

  File "/incubator-tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 216, in 
__call__
    raise get_last_ffi_error()

%17 = strided_slice(%Preprocessor/map/Shape, begin=[0], end=[1], strides=[1]);
    %18 = squeeze(%17);
    %19 = @tensor_array_float32_scalar(%18);
    %20 = @tensor_array_int32_scalar(%18);
    %21 = @tensor_array_float32_1_1_3(%18);
    %22 = arange(0, 1, 1, start=meta[relay.Constant][0], 
stop=meta[relay.Constant][1], step=meta[relay.Constant][2], dtype="int32");
    %23 = cast(%image_tensor, dtype="float32");
    %24 = @tensor_array_unstack_float32_1_1_1_3(%23);
    %25 = @tensor_array_scatter_float32_1_1_3(%21, %22, %24);
    %while_loop(%19, %20, 0, %25, %18)
  ) unable to unify: `static_tensor_float32_640_640_3_t` and 
`static_tensor_float32_scalar_t`; unable to unify: `static_tensor_int32_3_t` 
and `static_tensor_int32_scalar_t`; ;
  %26.0

Does anyone else met this error before?





---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/4) 
to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/7a866ce2cd92c5def57af1af8538928685a082d19d1ecd85d7dc5db32dc33b1b).

Reply via email to