[Serving]update ocr model.py from np.object to np.object_ (#1017)

* [Serving]update ocr model.py from np.object to np.object_

* Update model.py
This commit is contained in:
heliqi
2022-12-30 12:00:07 +08:00
committed by GitHub
parent f23c6c03af
commit 01b67856a6
2 changed files with 2 additions and 2 deletions
@@ -217,7 +217,7 @@ class TritonPythonModel:
out_tensor_0 = pb_utils.Tensor(
self.output_names[0],
np.array(
batch_rec_texts, dtype=np.object))
batch_rec_texts, dtype=np.object_))
out_tensor_1 = pb_utils.Tensor(self.output_names[1],
np.array(batch_rec_scores))
inference_response = pb_utils.InferenceResponse(