Skip to content

Commit ae7b90e

Browse files
committed
Update base.py
1 parent f8adeed commit ae7b90e

File tree

1 file changed

+4
-1
lines changed
  • golf_federated/client/process/config/device

1 file changed

+4
-1
lines changed

golf_federated/client/process/config/device/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,7 @@ def stop(self) -> None:
148148

149149
# Call the trainer to stop local training.
150150
loggerhear.log("Client Info ", "Stop training on %s!" % self.client_name)
151-
self.trainer.stop()
151+
try:
152+
self.trainer.stop()
153+
except:
154+
self.trainer.stop_trainer()

0 commit comments

Comments
 (0)