Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#1283 from wwbitejotunn/ppinfer_trt_bu…
Browse files Browse the repository at this point in the history
…gfix

[Bug Fix] Paddle backend bug when tensorrt enable
  • Loading branch information
joey12300 authored Feb 9, 2023
2 parents 4742f97 + 898b063 commit 1476f15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fastdeploy/runtime/backends/paddle/paddle_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ void PaddleBackend::BuildOption(const PaddleBackendOption& option) {
"file will save to the directory where paddle model saved."
<< std::endl;
use_static = true;
std::string opt_cache_dir =
GetDirFromPath(option.trt_option.serialize_file);

config_.SetOptimCacheDir(opt_cache_dir);
}
config_.EnableTensorRtEngine(option.trt_option.max_workspace_size,
option.trt_option.max_batch_size, 3,
Expand Down

0 comments on commit 1476f15

Please sign in to comment.