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/27 18:49:27 UTC

[GitHub] [incubator-tvm] wpan11nv commented on a change in pull request #4779: [AUTOTVM] Fix a bug in generating the search space

wpan11nv commented on a change in pull request #4779: [AUTOTVM] Fix a bug in generating the search space
URL: https://github.com/apache/incubator-tvm/pull/4779#discussion_r371417185
 
 

 ##########
 File path: python/tvm/autotvm/task/space.py
 ##########
 @@ -226,7 +226,13 @@ def __init__(self, axes, policy, **kwargs):
     def _generate_space(self, now, tmp_stack, enforce_no_tail=False):
         """Generate space by DFS"""
         if now == self.num_output - 1:
-            prod = np.prod(tmp_stack, dtype=np.int64)
+            prod = 1
 
 Review comment:
   It looks more pythonic. The number of lines will be similar. Here is one debate on this: :) 
   
   https://stackoverflow.com/questions/9474412/python-alternative-to-reduce

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