mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-24 09:03:43 +08:00
[Bug Fix] fix bug in benchmark option.h
This commit is contained in:
@@ -86,7 +86,7 @@ static bool CreateRuntimeOption(fastdeploy::RuntimeOption* option,
|
|||||||
}
|
}
|
||||||
} else if (config_info["device"] == "xpu") {
|
} else if (config_info["device"] == "xpu") {
|
||||||
if (FLAGS_xpu_l3_cache >= 0) {
|
if (FLAGS_xpu_l3_cache >= 0) {
|
||||||
option->UseKunlunXin(std::stoi(config_info["device_id"],
|
option->UseKunlunXin(std::stoi(config_info["device_id"]),
|
||||||
FLAGS_xpu_l3_cache);
|
FLAGS_xpu_l3_cache);
|
||||||
} else {
|
} else {
|
||||||
option->UseKunlunXin(std::stoi(config_info["device_id"]),
|
option->UseKunlunXin(std::stoi(config_info["device_id"]),
|
||||||
|
|||||||
Reference in New Issue
Block a user