From f992f8d7ef58cb632985832816fad8ff5db7947a Mon Sep 17 00:00:00 2001 From: Zhou Wei <52485244+zhouwei25@users.noreply.github.com> Date: Wed, 16 Sep 2020 15:33:09 +0800 Subject: [PATCH] fix judge cache file of inference api more accurate (#27175) fix judge cache file of inference api more accurate --- paddle/fluid/inference/tests/api/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/inference/tests/api/CMakeLists.txt b/paddle/fluid/inference/tests/api/CMakeLists.txt index a1b43de4695..d7d4f7969fa 100644 --- a/paddle/fluid/inference/tests/api/CMakeLists.txt +++ b/paddle/fluid/inference/tests/api/CMakeLists.txt @@ -9,6 +9,7 @@ if(WITH_GPU AND TENSORRT_FOUND) endif() function(download_data install_dir data_file) + string(REGEX MATCH "[^/\\]+$" data_file ${data_file}) if (NOT EXISTS ${install_dir}/${data_file}) inference_download_and_uncompress(${install_dir} ${INFERENCE_URL} ${data_file}) endif() -- GitLab