masahi commented on a change in pull request #5204: [Frontend][Torch] Fix up 
graph input handling
URL: https://github.com/apache/incubator-tvm/pull/5204#discussion_r401745032
 
 

 ##########
 File path: python/tvm/relay/frontend/pytorch.py
 ##########
 @@ -1007,16 +1007,13 @@ def _get_input_names(node_or_graph):
     return [inp.debugName() for inp in node_or_graph.inputs()]
 
 
-def _get_op_inputs(op_node, outputs, output_index_map):
-    input_names = [output_index_map[name]
-                   for name in _get_input_names(op_node)]
-    return [outputs[name] for name in input_names]
+def _get_op_inputs(op_node, input_vars):
 
 Review comment:
   `input_vars` -> `outputs`
   
   Because inputs are not `relay.Var`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to