ashutosh-arm commented on code in PR #14819:
URL: https://github.com/apache/tvm/pull/14819#discussion_r1190947596
##########
python/tvm/relay/frontend/tflite.py:
##########
@@ -4116,7 +4116,12 @@ def get_tensor_name(subgraph, tensor_idx):
-------
tensor name in UTF-8 encoding
"""
- return subgraph.Tensors(tensor_idx).Name().decode("utf-8")
+ tensor_name = subgraph.Tensors(tensor_idx).Name()
+ if tensor_name is not None:
+ tensor_name = tensor_name.decode("utf-8")
+ else:
+ tensor_name = "tvmgen_tensor_" + str(tensor_idx)
Review Comment:
After having offline discussion, it looks like the auto-generation will
eventually disappear once the fix from tflite appears. So, it seems okay at
this point to keep the original name.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]