Skip to content

Commit

Permalink
[Bug Fix] fixed fd server use_paddle parameter parse policy (PaddlePa…
Browse files Browse the repository at this point in the history
…ddle#2044)

* [Server] Support GPU encrypt & auth for FD Triton Server

* fix dockerfile proxy env error

* update build scrpits

* remove some logs

* [Bug Fix] fixed fd server use_paddle parameter parse policy

* optimize paddle-trt policy

* optimize paddle-trt policy

---------

Co-authored-by: root <[email protected]>
Co-authored-by: qiuyanjun <[email protected]>
  • Loading branch information
3 people authored Jun 21, 2023
1 parent e171710 commit 5b8a3b4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion serving/src/fastdeploy_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,21 @@ ModelState::ModelState(TRITONBACKEND_Model* triton_model)
} else if (param_key == "cache_file") {
runtime_options_->trt_option.serialize_file = value_string;
} else if (param_key == "use_paddle") {
runtime_options_->EnablePaddleToTrt();
// `RuntimeOption::EnablePaddleToTrt` will be removed in v1.2.0
bool use_paddle;
THROW_IF_BACKEND_MODEL_ERROR(
ParseBoolValue(value_string, &use_paddle));
if (use_paddle) {
// runtime_options_->EnablePaddleToTrt();
runtime_options_->UsePaddleInferBackend();
runtime_options_->paddle_infer_option.enable_trt = true;
}
} else if (param_key == "use_paddle_trt") {
// Use new option setting policy to set paddle_trt backend
bool use_paddle_trt;
THROW_IF_BACKEND_MODEL_ERROR(
ParseBoolValue(value_string, &use_paddle_trt));
runtime_options_->paddle_infer_option.enable_trt = use_paddle_trt;
} else if (param_key == "use_paddle_log") {
bool use_paddle_log;
THROW_IF_BACKEND_MODEL_ERROR(
Expand Down

0 comments on commit 5b8a3b4

Please sign in to comment.