 'dict' object has no attribute 'callback_metrics'
raise the error
File "/opt/software/envs/dl/lib/python3.6/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 421, in __update_callback_metrics self.callback_metrics = eval_result.callback_metrics AttributeError: 'dict' object has no attribute 'callback_metrics'
where using the follow

from pytorch_lightning import LightningModule as LitModule
class myLitMoudel(LitModule):

     def validation_step(self,batch,batch_idx):
         loss = self.batch_loss(batch["sent"])
         result = EvalResult()
         result.log("val_loss", loss)
         return result

     def validation_epoch_end(self,outputs):
         val_loss = torch.mean(outputs["val_loss"]).mean()
         print(val_loss)
         return {"val_loss":val_loss}

with early stopping configure
es = EarlyStopping(monitor="val_loss",min_delta=0.001,patience=30,verbose=True,mode="min") 
pytorch 1.6.0
pytorch-lightning  0.9.0