mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-11-01 04:12:58 +08:00
[Serving]update np.object to np.object_ (#1021)
np.object to np.object_
This commit is contained in:
@@ -141,7 +141,7 @@ class TritonPythonModel:
|
||||
self.uie_model_.set_schema(schema)
|
||||
results = self.uie_model_.predict(texts, return_dict=True)
|
||||
|
||||
results = np.array(results, dtype=np.object)
|
||||
results = np.array(results, dtype=np.object_)
|
||||
out_tensor = pb_utils.Tensor(self.output_names[0], results)
|
||||
inference_response = pb_utils.InferenceResponse(
|
||||
output_tensors=[out_tensor, ])
|
||||
|
||||
Reference in New Issue
Block a user