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 2020/01/13 15:24:34 UTC

[GitHub] [incubator-tvm] inadob commented on a change in pull request #4518: [Bugfix][Frontend][TF] Fix incorrect calculations in tf SLICE

inadob commented on a change in pull request #4518: [Bugfix][Frontend][TF] Fix incorrect calculations in tf SLICE
URL: https://github.com/apache/incubator-tvm/pull/4518#discussion_r365863059
 
 

 ##########
 File path: python/tvm/relay/frontend/tensorflow.py
 ##########
 @@ -639,7 +639,7 @@ def _impl(inputs, attr, params):
         end = size
         for i in range(data_dim):
             if size[i] == -1:
-                end[i] = data_shape[i] - begin[i]
+                end[i] = data_shape[i] - begin[i] + 1
 
 Review comment:
   Ok, I agree with you. It's changed now 

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


With regards,
Apache Git Services