[Serving]update np.object to np.object_ (#1021)

np.object to np.object_
This commit is contained in:
heliqi
2022-12-30 16:43:47 +08:00
committed by GitHub
parent 665f2e549a
commit 6310ddc8d6
5 changed files with 5 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ class TritonPythonModel:
results = self.postprocessor_.run([infer_outputs], im_infos)
r_str = fd.vision.utils.fd_result_to_json(results)
r_np = np.array(r_str, dtype=np.object)
r_np = np.array(r_str, dtype=np.object_)
out_tensor = pb_utils.Tensor(self.output_names[0], r_np)
inference_response = pb_utils.InferenceResponse(