'Update evaluation metric with label and current outputs.'

def update_metric(self, metric, labels):

    for (texec, islice) in zip(self.train_execs, self.slices):
        labels_slice = [label[islice] for label in labels]
        metric.update(labels_slice, texec.outputs)
