When converting a TF saved model to TVM so, I realized that the constant node’s STRING tensor has been converted into a uint32 tensor. The value is exactly the index mapping to the STRING tensor’s string list, per parsing TF pbtxt file.
How can we keep the constant node’s STRING info in the TVM module? It seems the NDArray can’t store the STRING dtype, which only supports so-called “object” dtype. The STRING information seems get lost. Is there any workaround about this issue? Otherwise we have to store the STRING map in TF before relay build and then do an index mapping after inference, which is non-trivial. I figure it is a common issue for all the frontend(s).
BTW, will this feature be supported in Relax IR in the future? Thanks a lot.