def METHOD_NAME(self, batch, request):
    inputs = self.get_inputs(batch)
    with torch.no_grad():
        out = self.model.forward(**inputs)
    outputs = self.get_outputs(out, request)
    self.update_batch(batch, request, outputs)