add template
This commit is contained in:
1 parent
b76bb9a271
commit
4be05dd4f9
5 files changed
+277
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from pytorch_lightning.callbacks import Callback
|
||||
|
||||
|
||||
class ExampleCallback(Callback):
|
||||
|
||||
def on_init_start(self, trainer):
|
||||
print('Starting to init trainer!')
|
||||
|
||||
def on_init_end(self, trainer):
|
||||
print('Trainer is init now')
|
||||
|
||||
def on_train_end(self, trainer, pl_module):
|
||||
print('Do something when training ends')
|
||||
Reference in new issue
Block a user