def infer_batch(self, batch):
    moved = []
    for feature in batch:
        moved.append(feature.to(self.device))
    logits = self.model.infer(*moved)
    return logits.detach().cpu()
def infer_batch(self, batch):
    moved = []
    for feature in batch:
        moved.append(feature.to(self.device))
    logits = self.model.infer(*moved)
    return logits.detach().cpu()