mac 10.13.3
python run.py --type distribute --distributed self
distribute.py:
class PlayConfig:
def init(self):
self.max_processes = 1 # tune this to your cpu cores
self.search_threads = 10 # increase this will be faster but with weaker performance
agent/player.py line 179: self.all_done.acquire(True)
发现这里每次调用时间很长,几百ms。
去掉该调用之后,发现以下错误。走几步之后程序会退出。
2018-12-03 18:30:51,787@cchess_alphazero.worker.self_play MainThread ERROR # No chessman in 0010, state = rkemsmer1/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/1REMSMEKR, no_act = [], policy = [nan, ... nan]
mac 10.13.3 python run.py --type distribute --distributed self
distribute.py: class PlayConfig: def init(self): self.max_processes = 1 # tune this to your cpu cores self.search_threads = 10 # increase this will be faster but with weaker performance
agent/player.py line 179: self.all_done.acquire(True) 发现这里每次调用时间很长,几百ms。 去掉该调用之后,发现以下错误。走几步之后程序会退出。
2018-12-03 18:30:51,787@cchess_alphazero.worker.self_play MainThread ERROR # No chessman in 0010, state = rkemsmer1/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/1REMSMEKR, no_act = [], policy = [nan, ... nan]
请问这个all_done.acquire 是用来同步 MCTS_search 搜索状态的么?