fix: do not need explicitly call postprocess

pull/1220/head
gaotingquan 2021-09-02 04:58:10 +00:00 committed by Tingquan Gao
parent 7afad4517d
commit 17c292f733
1 changed files with 1 additions and 2 deletions

View File

@ -76,8 +76,7 @@ class ClasSystem(nn.Layer):
starttime = time.time()
outputs = self.cls_predictor.predict(inputs)
elapse = time.time() - starttime
preds = self.cls_predictor.postprocess(outputs)
return {"prediction": preds, "elapse": elapse}
return {"prediction": outputs, "elapse": elapse}
@serving
def serving_method(self, images, revert_params):