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 f6a3a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,7 @@ 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']

0 comments on commit f6a3a56

Please sign in to comment.