AttributeError: 'dict' object has no attribute 'get_epoch_log_metrics'
I have created a lightning module which is working fine for single validation dataset but throws following error while using multiple validation dataset:
self._log_on_evaluation_epoch_end_metrics(epoch_logs)
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/pytorch_lightning/trainer/connectors/logger_connector.py", line 186, in _log_on_evaluation_epoch_end_metrics
    logger_metrics = reduced_epoch_metrics.get_epoch_log_metrics()
AttributeError: 'dict' object has no attribute 'get_epoch_log_metrics'

Here's my validation_step method. To support single as well as multiple validation dataset I have kept dataset_idx = 0
    def validation_step(self, batch, batch_idx, dataset_idx=0):
        qa_pairs, labels = batch
        # labels = labels.type(torch.LongTensor)
        labels = labels.long()#(torch.LongTensor)
        # run the model for the inputs 
        outputs = self(qa_pairs)
        # compute the loss
        if self.loss.lower() == "cross_entropy":
            loss = F.cross_entropy(outputs, labels)

        self.valid_acc(outputs, labels)
        self.log('val_loss', loss, on_step=True)
        self.log('val_acc', self.valid_acc, on_step=True, on_epoch=True, prog_bar=True)

Looking at the error msgs, I commented the logging part, which seems to get rid of the error.
system:
pytorch: 1.6
ubuntu 18.04
pytorch-lightning: 1.0.3
StackOverflow Post