From 813024116ba1960408d5e6b7ad2557e03db80c8a Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 16 Jul 2019 17:50:41 +0200 Subject: [PATCH] updates --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index b467b3d1..670205ac 100644 --- a/train.py +++ b/train.py @@ -235,7 +235,7 @@ def train(cfg, # Print batch results mloss = (mloss * i + loss_items) / (i + 1) # update mean losses - mem = torch.cuda.memory_cached() / 1E6 if torch.cuda.is_available() else 0 + mem = torch.cuda.memory_cached() / 1E9 if torch.cuda.is_available() else 0 s = ('%8s' + '%10.3g' * 8) % ('%g/%g' % (epoch, epochs - 1), *mloss, len(targets), img_size, mem) pbar.set_description(s) # print(s)