masahi commented on code in PR #16171:
URL: https://github.com/apache/tvm/pull/16171#discussion_r1419781622
##########
python/tvm/relay/frontend/pytorch.py:
##########
@@ -4809,13 +4869,21 @@ def _traverse_graph(nodes):
if node.kind() in prim_with_blocks:
for block in node.blocks():
_traverse_graph(block.nodes())
- _rename_outputs(node, source_map, op_type_dict,
use_parser_friendly_name)
+ _rename_outputs(
+ node, source_map, op_type_dict, use_parser_friendly_name,
preserve_pytorch_scopes
+ )
_traverse_graph(graph.nodes())
return source_map
-def _get_operator_nodes(nodes, source_map=None, op_type_dict=None,
use_parser_friendly_name=False):
+def _get_operator_nodes(
+ nodes,
+ source_map=None,
+ op_type_dict=None,
+ use_parser_friendly_name=False,
+ preserve_pytorch_scopes=False,
Review Comment:
I think it can be set to True by default, can be done as a follow up.
--
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]