msoulio:

D:\Resources\Pytorch Learn\utils.py in log_every(self, iterable, print_freq, header)
210 meters=str(self),
211 time=str(iter_time), data=str(data_time),
–> 212 memory=torch.cuda.max_memory_allocated() / MB))
213 i += 1
214 end = time.time()


Why do you call torch.cuda.max_memory_allocated() here?