From 753e493d6c5dff4682be4ea6d329d80e40acd51d Mon Sep 17 00:00:00 2001 From: ViperEkura <3081035982@qq.com> Date: Tue, 30 Sep 2025 20:55:24 +0800 Subject: [PATCH] =?UTF-8?q?docs(khaosz/trainer):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E7=9A=84=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- khaosz/trainer/trainer_callback.py | 34 +++++++----------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/khaosz/trainer/trainer_callback.py b/khaosz/trainer/trainer_callback.py index cb4b954..59b2823 100644 --- a/khaosz/trainer/trainer_callback.py +++ b/khaosz/trainer/trainer_callback.py @@ -20,53 +20,35 @@ class TrainerCallback: """ def on_train_begin(self, trainer: 'Trainer', **kwargs): - """ - Called at the beginning of training. - """ + """ Called at the beginning of training. """ _ = trainer, kwargs def on_train_end(self, trainer: 'Trainer', **kwargs): - """ - Called at the end of training. - """ + """ Called at the end of training. """ _ = trainer, kwargs def on_epoch_begin(self, trainer: 'Trainer', **kwargs): - """ - Called at the beginning of each epoch. - """ + """ Called at the beginning of each epoch. """ _ = trainer, kwargs def on_epoch_end(self, trainer: 'Trainer', **kwargs): - """ - Called at the end of each epoch. - """ + """ Called at the end of each epoch. """ _ = trainer, kwargs def on_batch_begin(self, trainer: 'Trainer', **kwargs): - """ - Called at the beginning of each batch. - """ + """ Called at the beginning of each batch. """ _ = trainer, kwargs def on_batch_end(self, trainer: 'Trainer', **kwargs): - """ - Called at the end of each batch. - """ + """ Called at the end of each batch. """ _ = trainer, kwargs def on_step_begin(self, trainer: 'Trainer', **kwargs): - """ - Called at the beginning of each step. - """ - + """ Called at the beginning of each step. """ _ = trainer, kwargs def on_step_end(self, trainer: 'Trainer', **kwargs): - """ - Called at the end of each step. - """ - + """ Called at the end of each step.""" _ = trainer, kwargs