changed read me

This commit is contained in:
William Falcon 2019-06-28 16:24:51 -04:00
parent 420ecd1b08
commit 2840c7209f
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class Trainer(TrainerIO):
'batch_nb':'{}'.format(self.batch_nb),
}
tqdm_dic.update(self.tqdm_metrics)
return tqdm_dic
def __layout_bookeeping(self, model):
@ -161,6 +162,9 @@ class Trainer(TrainerIO):
def __add_tqdm_metrics(self, metrics):
for k, v in metrics.items():
if type(v) is torch.Tensor:
v = v.item()
self.tqdm_metrics[k] = v
def validate(self, model, dataloader, max_batches):