def update_meters(self, model_output, sample):
    target = sample['target'].detach().cpu()
    model_output = model_output.detach().cpu()
    for meter in self.meters:
        meter.update(model_output, target, is_train=self.train)
def update_meters(self, model_output, sample):
    target = sample['target'].detach().cpu()
    model_output = model_output.detach().cpu()
    for meter in self.meters:
        meter.update(model_output, target, is_train=self.train)