added testing for metrics

This commit is contained in:
William Falcon
2019-07-24 20:33:31 -04:00
parent 23e7521300
commit 63a4af3ba7
4 changed files with 3 additions and 15 deletions
@@ -166,8 +166,8 @@ class LightningTestModel(LightningModule):
tqdm_dic = {'val_loss': val_loss_mean.item(), 'val_acc': val_acc_mean.item()}
return tqdm_dic
def update_tng_log_metrics(self, logs):
return logs
def on_tng_metrics(self, logs):
logs['some_tensor_to_test'] = torch.rand(1)
# ---------------------
# MODEL SAVING