giuseros commented on a change in pull request #6949:
URL: https://github.com/apache/tvm/pull/6949#discussion_r529593591
##########
File path: python/tvm/relay/frontend/tensorflow.py
##########
@@ -1599,6 +1599,9 @@ def _impl(inputs, attr, params, mod):
data_shape = get_const_tuple(in_type.checked_type.shape)
data_dim = len(data_shape)
stride_dim = len(stride)
+ if data_dim == 0 and isinstance(inputs[0], _expr.Constant):
Review comment:
Cool, I didn't know that! I would still add a test to show when this
situation arises (just to make sure that branch is covered). What do you think?
----------------------------------------------------------------
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]