mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[benchmark] Add lite opencl gpu option support (#1944)
[benchmark] add lite opencl gpu option support
This commit is contained in:
@@ -53,6 +53,11 @@ static bool CreateRuntimeOption(fastdeploy::RuntimeOption* option,
|
|||||||
if (config_info["use_fp16"] == "true") {
|
if (config_info["use_fp16"] == "true") {
|
||||||
option->trt_option.enable_fp16 = true;
|
option->trt_option.enable_fp16 = true;
|
||||||
}
|
}
|
||||||
|
} else if (config_info["backend"] == "lite") {
|
||||||
|
option->UsePaddleLiteBackend();
|
||||||
|
if (config_info["use_fp16"] == "true") {
|
||||||
|
option->paddle_lite_option.enable_fp16 = true;
|
||||||
|
}
|
||||||
} else if (config_info["backend"] == "default") {
|
} else if (config_info["backend"] == "default") {
|
||||||
PrintBenchmarkInfo(config_info);
|
PrintBenchmarkInfo(config_info);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user