add template

This commit is contained in:
hobogalaxy committed 2020-11-05 00:52:51 +01:00
1 parent b76bb9a271
commit 4be05dd4f9
5 files changed
+277

No files matched your search

+13
View File
@@ -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')