From ae22e6b95f1752945777721aaacb5b6aca44cf73 Mon Sep 17 00:00:00 2001 From: dongdaxiang Date: Tue, 14 Apr 2020 21:33:35 +0800 Subject: [PATCH] return -1 for failed predict --- core/general-client/src/general_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/general-client/src/general_model.cpp b/core/general-client/src/general_model.cpp index c12bb79a..55a4b508 100644 --- a/core/general-client/src/general_model.cpp +++ b/core/general-client/src/general_model.cpp @@ -237,7 +237,7 @@ int PredictorClient::batch_predict( res.Clear(); if (_predictor->inference(&req, &res) != 0) { LOG(ERROR) << "failed call predictor with req: " << req.ShortDebugString(); - exit(-1); + return -1; } else { client_infer_end = timeline.TimeStampUS(); postprocess_start = client_infer_end; -- GitLab