You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/02/17 13:19:43 UTC
[GitHub] [tvm] grant-arm commented on a change in pull request #10191: Generate correct output tensor names in C Interface API
grant-arm commented on a change in pull request #10191:
URL: https://github.com/apache/tvm/pull/10191#discussion_r809039406
##########
File path: python/tvm/relay/frontend/tflite.py
##########
@@ -3769,6 +3770,15 @@ def from_tflite(model, shape_dict=None, dtype_dict=None, op_converter=OperatorCo
params = {k: _nd.array(np.array(v)) for k, v in exp_tab.params.items()}
outputs = [exp_tab.get_expr(get_tensor_name(subgraph, i)) for i in model_outputs]
outputs = outputs[0] if len(outputs) == 1 else _expr.Tuple(outputs)
- func = _function.Function(analysis.free_vars(outputs), outputs)
+ attrs = tvm.ir.make_node(
+ "DictAttrs",
+ **{
+ "output_tensor_names": [
+ re.sub(r"\W", "_", get_tensor_name(subgraph, model_output))
Review comment:
Thanks @Mousius , I've changed that now.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org