mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-25 18:13:21 +08:00
[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user