masahi commented on a change in pull request #5243:
[Frontend][TensorFlow]Improve TensorFlow Static Shape Tensor Array
URL: https://github.com/apache/incubator-tvm/pull/5243#discussion_r406498520
##########
File path: python/tvm/relay/frontend/common.py
##########
@@ -483,6 +481,17 @@ def infer_channels(inputs, transpose=False):
return channels
+def infer_shape(inputs, mod=None):
+ """A method to get the output type of an intermediate node in the graph."""
+ out_type = infer_type(inputs, mod=mod)
+ checked_type = out_type.checked_type
+ if hasattr(checked_type, 'shape'):
+ # Regular operator that outputs tensors
+ return get_const_tuple(out_type.checked_type.shape)
+ # The return type is not a tensor, for example List
Review comment:
`out_type.checked_type -> checked_type`
----------------------------------------------------------------
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