updated args

This commit is contained in:
William Falcon 2019-06-25 20:14:29 -04:00
parent a76ae6bc48
commit 7a7a9a9da0
1 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class ExampleModel(RootModule):
# return loss_val, tqdm_dic
output = OrderedDict({
'loss_val': loss_val,
'loss_val': loss_val.unsqueeze(0),
})
return output
@ -99,8 +99,8 @@ class ExampleModel(RootModule):
# output = {'y_hat': y_hat, 'val_loss': loss_val.item(), 'val_acc': val_acc}
output = OrderedDict({
'loss_val': loss_val,
'val_acc': val_acc,
'loss_val': loss_val.unsqueeze(0),
'val_acc': val_acc.unsqueeze(0),
})
return output