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 2021/04/05 13:02:10 UTC

[GitHub] [tvm] xqdan commented on a change in pull request #7789: [TF frontend][bugfix]Avoid making a new node when already has span info

xqdan commented on a change in pull request #7789:
URL: https://github.com/apache/tvm/pull/7789#discussion_r607075906



##########
File path: python/tvm/relay/frontend/tensorflow.py
##########
@@ -3851,11 +3851,11 @@ def _convert_operator(
     @staticmethod
     def _set_span(sym, node_name):
         span = tvm.relay.Span(tvm.relay.SourceName(node_name), 0, 0, 0, 0)
-        if isinstance(sym, _expr.Call):
+        if isinstance(sym, _expr.Call) and sym.span is None:

Review comment:
       I'd love to, but I don't know how to create unitest for pb parsering flow, any suggestion?  thanks




-- 
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:
users@infra.apache.org