Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac committed Feb 14, 2020
1 parent e2f417e commit 1acf051
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/tvm/autotvm/tuner/index_based_tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def next_batch(self, batch_size):
ret = []
for _ in range(batch_size):
if self.counter >= self.range_length:
continue
break
index = self.counter + self.index_offset
ret.append(self.task.config_space.get(index))
self.counter = self.counter + 1
Expand Down Expand Up @@ -115,7 +115,8 @@ def next_batch(self, batch_size):
return ret

def __getstate__(self):
return {"visited": self.counter}
return {"visited": self.visited}

def __setstate__(self, state):
self.counter = state['visited']
self.visited = state['visited']
self.counter = len(self.visited)

0 comments on commit 1acf051

Please sign in to comment.