You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by lm...@apache.org on 2021/01/08 23:51:04 UTC

[tvm] branch revert-7175-main created (now afa896a)

This is an automated email from the ASF dual-hosted git repository.

lmzheng pushed a change to branch revert-7175-main
in repository https://gitbox.apache.org/repos/asf/tvm.git.


      at afa896a  Revert "[AutoTVM-FIX] avoid unexpected value(1) of search space when get length for uninitiated search space (#7175)"

This branch includes the following new commits:

     new afa896a  Revert "[AutoTVM-FIX] avoid unexpected value(1) of search space when get length for uninitiated search space (#7175)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[tvm] 01/01: Revert "[AutoTVM-FIX] avoid unexpected value(1) of search space when get length for uninitiated search space (#7175)"

Posted by lm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lmzheng pushed a commit to branch revert-7175-main
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit afa896a72f413b1556daa764c13a75b5601bca61
Author: Lianmin Zheng <li...@gmail.com>
AuthorDate: Fri Jan 8 15:50:44 2021 -0800

    Revert "[AutoTVM-FIX] avoid unexpected value(1) of search space when get length for uninitiated search space (#7175)"
    
    This reverts commit f2ab977de0ac543cae77d3bef76af1b56dd61eed.
---
 python/tvm/autotvm/task/space.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/python/tvm/autotvm/task/space.py b/python/tvm/autotvm/task/space.py
index b24ab41..cf9cd80 100644
--- a/python/tvm/autotvm/task/space.py
+++ b/python/tvm/autotvm/task/space.py
@@ -836,8 +836,6 @@ class ConfigSpace(object):
         return [Axis(None, i) for i in range(space_class.get_num_output(axes, policy, **kwargs))]
 
     def __len__(self):
-        if not self.space_map:
-            return 0
         if self._length is None:
             self._length = int(np.prod([len(x) for x in self.space_map.values()]))
         return self._length