kevinthesun commented on a change in pull request #5762:
URL: https://github.com/apache/incubator-tvm/pull/5762#discussion_r438948105



##########
File path: python/tvm/relay/frontend/tensorflow.py
##########
@@ -1352,12 +1352,17 @@ def _impl(inputs, attr, params, mod):
         # Output shape must be defined to avoid errors. If any axis is not, we 
must
         # try to compute its shape.
         if output_shape is None or -1 in output_shape:
-            output_shape = _infer_value(inputs[0], 
params).asnumpy().reshape([-1]).tolist()
+            try:
+                output_shape = _infer_value(inputs[0], params, 
mod).asnumpy().reshape([-1]).tolist()
+            except (IndexError, KeyError, AttributeError):

Review comment:
       Need a general exception for _infer_value




----------------------------------------------------------------
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]


Reply via email to