From a8596c6af44fe873e4bf94ae085eabfc09dcb509 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 24 Jul 2019 13:32:14 +0200 Subject: [PATCH] updates --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 4e797dd7..3f92b972 100644 --- a/train.py +++ b/train.py @@ -317,7 +317,7 @@ def train(cfg, # Report time print('%g epochs completed in %.3f hours.' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) - del model, optimizer, loss, dataset, dataloader, scaled_loss, scheduler + del model, optimizer, loss, dataset, dataloader, scheduler torch.cuda.empty_cache() return results