updated args

This commit is contained in:
William Falcon 2019-06-25 20:21:11 -04:00
parent 9b46f13230
commit 51305697c1
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class ExampleModel(RootModule):
accs.append(output['val_acc'])
val_loss_mean /= len(outputs)
tqdm_dic = {'val_loss': val_loss_mean, 'val_acc': np.mean(accs)}
tqdm_dic = {'val_loss': val_loss_mean, 'val_acc': torch.mean(accs).item()}
return tqdm_dic
def update_tng_log_metrics(self, logs):