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