mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
fix: pickle error due to Lock object
tb_logger get's closed after training. So we need to re-assign the new one, otherwise pickling fails. closes #10034
This commit is contained in:
@@ -763,6 +763,8 @@ class IFreqaiModel(ABC):
|
||||
init_model = None
|
||||
else:
|
||||
init_model = self.dd.model_dictionary[pair]
|
||||
# Set "fresh" tb_logger - the one in model_dictionary has the writer closed.
|
||||
init_model.tb_logger = self.tb_logger
|
||||
|
||||
return init_model
|
||||
|
||||
|
||||
Reference in New Issue
Block a user