You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Suhas via TVM Discuss <no...@discuss.tvm.ai> on 2020/04/11 20:41:03 UTC
[TVM Discuss] [Questions] Issue with static tensor array
Trying to import a model to TVM but getting follow errors any idea about this
unable to unify: `static_tensor_float32_1_256_t` and `static_tensor_float32_scalar_t`;
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/1) 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/463d13d1a0c582df8ad78f4ebfca417ab03f73cb57d4fa29c3e95c764ce08d5e).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Heliqi via TVM Discuss <no...@discuss.tvm.ai>.
Are you looking at this?
@kevinthesun
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/11) 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/fdd443a4fae9de11ad5329c9e9fa697ff5eb2139dc39cccf751d094534e65958).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Suhas via TVM Discuss <no...@discuss.tvm.ai>.
yap same problem, we may have to wait for new PR
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/10) 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/77b9714a8071cee6e4ed7830d2de4c925b5ca951a3af74cdface4e09939d2208).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Heliqi via TVM Discuss <no...@discuss.tvm.ai>.
I’m facing the same error.
```
unable to unify: 'static_tensor_float32_320_320_3_t' and ''static_tensor_float32_scalar_t';
unable to unify: 'static_tensor_int32_3_t' and ''static_tensor_int32_scalar_t';
```
model: [ssd_mobilenet_v3
(Similar to http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v3_small_coco_2020_01_14.tar.gz)

---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/9) 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/3cf1ca6d1878b1f799919bb100d0aa267dbecb9aa2d9027678a83a3ce8dfb208).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Suhas via TVM Discuss <no...@discuss.tvm.ai>.
I dont think its fixed yet i am having same issues so any update regarding this....
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/8) 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/dca59ff8770848d1a121e962c79128ffe51b33245800d0317ce4e0ed85e676a8).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Heliqi via TVM Discuss <no...@discuss.tvm.ai>.
Thank you. Looking forward to it.
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/13) 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/3225551daf0f8ed40bb0efdc892d7f9f3795e93d70b9557e045f24d9b093fa3e).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Yao Wang via TVM Discuss <no...@discuss.tvm.ai>.
I'm refactoring tf frontend tensor array and will fix these issues.
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/12) 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/3f2678a9668887bb73d4bd7d1d94ce19fc54106ce55b93c3f6ea88e2b3183418).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Suhas via TVM Discuss <no...@discuss.tvm.ai>.
That is nice, wait for approval
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/7) 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/26a7a5e59f6cc85da8edab9b667ee10e26294531d9d31700a39666b7f7598166).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Suhas via TVM Discuss <no...@discuss.tvm.ai>.
some thing like this
%while_loop(0, 0, %255, %256, %259, %lstm_1/strided_slice_5/_25__cf__25, %lstm_1/strided_slice_10/_20__cf__20, %lstm_1/strided_slice_4/_24__cf__24, %lstm_1/strided_slice_3/_23__cf__23, %258, %lstm_1/strided_slice_1/_19__cf__19, %264, %lstm_1/strided_slice_2/_22__cf__22, %lstm_1/strided_slice_6/_26__cf__26, %lstm_1/strided_slice_11/_21__cf__21, %lstm_1/strided_slice_8/_28__cf__28, %lstm_1/strided_slice_7/_27__cf__27, %lstm_1/strided_slice_9/_29__cf__29, %lstm_1/strided_slice/_18__cf__18, %265) unable to unify: `static_tensor_float32_scalar_t` and `static_tensor_float32_1_256_t`;
) unable to unify: `static_tensor_float32_1_256_t` and `static_tensor_float32_scalar_t`; ;
%266.4
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/3) 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/58837a3582d5216388da13ca2f1559d0203b7cd485c9f6083767d93032d7333f).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Yao Wang via TVM Discuss <no...@discuss.tvm.ai>.
Can you provide the full trace?
Also it should be related to certain tensor array op. It would be better if you can provide a minimal case.
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/2) 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/9d17f98c49c221f7ccd97242d2c9d7925e083c68cfb45e3dda5c29a64cf8fa5f).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Suhas via TVM Discuss <no...@discuss.tvm.ai>.
you can make it work with static version of layout, i think something is wrong in loop handling with tensor array.
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/5) 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/24d6514043495e173897cf7f78414957250524abd0e93b3e24c0ffe87bba00cc).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by wwwwcu via TVM Discuss <no...@discuss.tvm.ai>.
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).
[TVM Discuss] [Questions] Issue with static tensor array
Posted by Yao Wang via TVM Discuss <no...@discuss.tvm.ai>.
I'm fixing some issues regarding to tf ssd models and will submit a PR soon.
---
[Visit Topic](https://discuss.tvm.ai/t/issue-with-static-tensor-array/6333/6) 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/7aad3c52189f86641d907557987ae8b4e841780b9b8c8f7c08b8b01d5778e740).