[benchmark] Add lite opencl gpu option support (#1944)

[benchmark] add lite opencl gpu option support
This commit is contained in:
DefTruth
2023-05-15 20:41:10 +08:00
committed by GitHub
parent b12d330076
commit a5a7c962d0

View File

@@ -53,6 +53,11 @@ static bool CreateRuntimeOption(fastdeploy::RuntimeOption* option,
if (config_info["use_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") {
PrintBenchmarkInfo(config_info);
return true;