[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
@@ -96,7 +96,7 @@ class TritonPythonModel:
results = self.postprocessor.run([infer_outputs])
out_tensor_0 = pb_utils.Tensor(
self.output_names[0], np.array(
results[0], dtype=np.object))
results[0], dtype=np.object_))
out_tensor_1 = pb_utils.Tensor(self.output_names[1],
np.array(results[1]))
inference_response = pb_utils.InferenceResponse(