Skip to content

Commit

Permalink
Revert "[AutoTVM-FIX] avoid unexpected value(1) of search space when …
Browse files Browse the repository at this point in the history
…get length for uninitiated search space (#7175)" (#7236)

This reverts commit f2ab977.
  • Loading branch information
merrymercy authored Jan 9, 2021
1 parent 02ef6e6 commit d949d15
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/tvm/autotvm/task/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,6 @@ def _add_new_transform(self, space_class, name, axes, policy, **kwargs):
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
Expand Down

0 comments on commit d949d15

Please sign in to comment.