mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
get cache dir
This commit is contained in:
@@ -44,7 +44,10 @@ void PaddleBackend::BuildOption(const PaddleBackendOption& option) {
|
|||||||
"file will save to the directory where paddle model saved."
|
"file will save to the directory where paddle model saved."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
use_static = true;
|
use_static = true;
|
||||||
config_.SetOptimCacheDir(option.trt_option.serialize_file);
|
std::string opt_cache_dir =
|
||||||
|
GetDirFromPath(option.trt_option.serialize_file);
|
||||||
|
|
||||||
|
config_.SetOptimCacheDir(opt_cache_dir);
|
||||||
}
|
}
|
||||||
config_.EnableTensorRtEngine(option.trt_option.max_workspace_size,
|
config_.EnableTensorRtEngine(option.trt_option.max_workspace_size,
|
||||||
option.trt_option.max_batch_size, 3,
|
option.trt_option.max_batch_size, 3,
|
||||||
|
Reference in New Issue
Block a user