Support onnxruntime 1.16.0 (#330)

This commit is contained in:
Fangjun Kuang
2023-09-21 20:39:24 +08:00
committed by GitHub
parent b640c295b9
commit cf199ad466
27 changed files with 139 additions and 119 deletions

View File

@@ -8,18 +8,18 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
message(FATAL_ERROR "This file is for macOS only. Given: ${CMAKE_SYSTEM_NAME}")
endif()
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-osx-arm64-1.15.1.tgz")
set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-arm64-1.15.1.tgz")
set(onnxruntime_HASH "SHA256=df97832fc7907c6677a6da437f92339d84a462becb74b1d65217fcb859ee9460")
set(onnxruntime_URL "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-arm64-1.16.0.tgz")
set(onnxruntime_URL2 )
set(onnxruntime_HASH "SHA256=fec3b70ca4f642a5c6d5c3a6f3a4eddd4c1b9281893fe2c7ae03a3086e20c316")
# If you don't have access to the Internet,
# please download onnxruntime to one of the following locations.
# You can add more if you want.
set(possible_file_locations
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.15.1.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-1.15.1.tgz
${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-1.15.1.tgz
/tmp/onnxruntime-osx-arm64-1.15.1.tgz
$ENV{HOME}/Downloads/onnxruntime-osx-arm64-1.16.0.tgz
${PROJECT_SOURCE_DIR}/onnxruntime-osx-arm64-1.16.0.tgz
${PROJECT_BINARY_DIR}/onnxruntime-osx-arm64-1.16.0.tgz
/tmp/onnxruntime-osx-arm64-1.16.0.tgz
)
foreach(f IN LISTS possible_file_locations)