(self)
| 72 | cb.before_train() |
| 73 | |
| 74 | def _after_train(self): |
| 75 | for cb in self.cbs: |
| 76 | # make sure callbacks are properly finalized |
| 77 | try: |
| 78 | cb.after_train() |
| 79 | except Exception: |
| 80 | traceback.print_exc() |
| 81 | |
| 82 | def get_hooks(self): |
| 83 | return [CallbackToHook(cb) for cb in self.cbs] |
nothing calls this directly
no test coverage detected