mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-02 20:27:35 +08:00
修复callback连续两次加入的bug
This commit is contained in:
parent
329a18976f
commit
210af73c6e
@ -324,7 +324,7 @@ class CallbackManager(Callback):
|
||||
self._env = env
|
||||
self.callbacks = []
|
||||
if callbacks:
|
||||
self.callbacks += self.prepare_callbacks(callbacks)
|
||||
self.prepare_callbacks(callbacks)
|
||||
|
||||
def prepare_callbacks(self, callbacks):
|
||||
if not callbacks:
|
||||
|
Loading…
Reference in New Issue
Block a user