Zeta36 / chess-alpha-zero

Chess reinforcement learning by AlphaGo Zero methods.
MIT License
2.14k stars 481 forks source link

AttributeError: '_thread._local' object has no attribute 'value' #86

Open programandoconro opened 4 years ago

programandoconro commented 4 years ago

Exception in thread prediction_worker: Traceback (most recent call last): File "/usr/lib64/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/lib64/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "src/chess_zero/agent/api_chess.py", line 67, in _predict_batch_worker policy_ary, value_ary = self.agent_model.model.predict_on_batch(data) File "/usr/local/lib64/python3.7/site-packages/keras/engine/training.py", line 1575, in predict_on_batch if self._uses_dynamic_learning_phase(): File "/usr/local/lib64/python3.7/site-packages/keras/engine/training.py", line 382, in _uses_dynamic_learning_phase not isinstance(K.learning_phase(), int)) File "/usr/local/lib64/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 73, in symbolic_fn_wrapper if _SYMBOLIC_SCOPE.value: AttributeError: '_thread._local' object has no attribute 'value'