未验证 提交 f992f8d7 编写于 作者: Z Zhou Wei 提交者: GitHub

fix judge cache file of inference api more accurate (#27175)

fix judge cache file of inference api more accurate
上级 4582f697
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册