未验证 提交 b4af377d 编写于 作者: D Dong Daxiang 提交者: GitHub

Merge branch 'develop' into variable_shape

......@@ -77,6 +77,7 @@ PYBIND11_MODULE(serving_client, m) {
[](PredictorClient &self) { self.create_predictor(); })
.def("destroy_predictor",
[](PredictorClient &self) { self.destroy_predictor(); })
.def("batch_predict",
[](PredictorClient &self,
const std::vector<std::vector<std::vector<float>>>
......@@ -99,7 +100,8 @@ PYBIND11_MODULE(serving_client, m) {
fetch_name,
predict_res_batch,
pid);
});
},
py::call_guard<py::gil_scoped_release>());
}
} // namespace general_model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册