pass the checkpoint path to the model
This commit is contained in:
parent
76f641a0f1
commit
725fc2c04e
@ -46,7 +46,7 @@ class Game:
|
|||||||
else:
|
else:
|
||||||
raise ValueError(name + " is an unknown game...")
|
raise ValueError(name + " is an unknown game...")
|
||||||
|
|
||||||
self.evaluator = model.ResNet(self.size, self.size ** 2 + 1, history_length=self.history_length)
|
self.evaluator = model.ResNet(self.size, self.size ** 2 + 1, history_length=self.history_length, checkpoint_path=checkpoint_path)
|
||||||
self.latest_boards = deque(maxlen=self.history_length)
|
self.latest_boards = deque(maxlen=self.history_length)
|
||||||
for _ in range(self.history_length):
|
for _ in range(self.history_length):
|
||||||
self.latest_boards.append(self.board)
|
self.latest_boards.append(self.board)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user