remove outputs from cudacallback
This commit is contained in:
parent
f7bb9b7bbc
commit
d283e04b8b
2
main.py
2
main.py
|
@ -400,7 +400,7 @@ class CUDACallback(Callback):
|
||||||
torch.cuda.synchronize(trainer.root_gpu)
|
torch.cuda.synchronize(trainer.root_gpu)
|
||||||
self.start_time = time.time()
|
self.start_time = time.time()
|
||||||
|
|
||||||
def on_train_epoch_end(self, trainer, pl_module, outputs):
|
def on_train_epoch_end(self, trainer, pl_module):
|
||||||
torch.cuda.synchronize(trainer.root_gpu)
|
torch.cuda.synchronize(trainer.root_gpu)
|
||||||
max_memory = torch.cuda.max_memory_allocated(trainer.root_gpu) / 2 ** 20
|
max_memory = torch.cuda.max_memory_allocated(trainer.root_gpu) / 2 ** 20
|
||||||
epoch_time = time.time() - self.start_time
|
epoch_time = time.time() - self.start_time
|
||||||
|
|
Loading…
Reference in New Issue