Committed by
GitHub
Update onnxruntime from v1.14.0 to v1.15.1 (#204)
正在显示
5 个修改的文件
包含
81 行增加
和
76 行删除
| @@ -59,7 +59,7 @@ jobs: | @@ -59,7 +59,7 @@ jobs: | ||
| 59 | - name: Install sherpa-onnx | 59 | - name: Install sherpa-onnx |
| 60 | shell: bash | 60 | shell: bash |
| 61 | run: | | 61 | run: | |
| 62 | - python3 setup.py install | 62 | + python3 -m pip install --verbose . |
| 63 | 63 | ||
| 64 | - name: Test sherpa-onnx | 64 | - name: Test sherpa-onnx |
| 65 | shell: bash | 65 | shell: bash |
| @@ -5,27 +5,29 @@ set -e | @@ -5,27 +5,29 @@ set -e | ||
| 5 | dir=build-ios | 5 | dir=build-ios |
| 6 | mkdir -p $dir | 6 | mkdir -p $dir |
| 7 | cd $dir | 7 | cd $dir |
| 8 | +onnxruntime_version=1.15.1 | ||
| 8 | 9 | ||
| 9 | -if [ ! -f ios-onnxruntime/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then | 10 | +if [ ! -f ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a ]; then |
| 10 | GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/ios-onnxruntime | 11 | GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/csukuangfj/ios-onnxruntime |
| 11 | pushd ios-onnxruntime | 12 | pushd ios-onnxruntime |
| 12 | - git lfs pull --include onnxruntime.xcframework/ios-arm64/onnxruntime.a | ||
| 13 | - git lfs pull --include onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a | 13 | + ln -s $onnxruntime_version/onnxruntime.xcframework . |
| 14 | + git lfs pull --include $onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a | ||
| 15 | + git lfs pull --include $onnxruntime_version/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a | ||
| 14 | popd | 16 | popd |
| 15 | fi | 17 | fi |
| 16 | 18 | ||
| 17 | # check filesize | 19 | # check filesize |
| 18 | -filesize=$(ls -l ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64/onnxruntime.a | tr -s " " " " | cut -d " " -f 5) | 20 | +filesize=$(ls -l ./ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a | tr -s " " " " | cut -d " " -f 5) |
| 19 | if (( $filesize < 1000 )); then | 21 | if (( $filesize < 1000 )); then |
| 20 | ls -lh ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64/onnxruntime.a | 22 | ls -lh ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64/onnxruntime.a |
| 21 | - echo "Please use: git lfs pull to download ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64/onnxruntime.a" | 23 | + echo "Please use: git lfs pull to download ./ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64/onnxruntime.a" |
| 22 | exit 1 | 24 | exit 1 |
| 23 | fi | 25 | fi |
| 24 | 26 | ||
| 25 | -filesize=$(ls -l ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a | tr -s " " " " | cut -d " " -f 5) | 27 | +filesize=$(ls -l ./ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a | tr -s " " " " | cut -d " " -f 5) |
| 26 | if (( $filesize < 1000 )); then | 28 | if (( $filesize < 1000 )); then |
| 27 | - ls -lh ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a | ||
| 28 | - echo "Please use: git lfs pull to download ./ios-onnxruntime/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a" | 29 | + ls -lh ./ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a |
| 30 | + echo "Please use: git lfs pull to download ./ios-onnxruntime/$onnxruntime_version/onnxruntime.xcframework/ios-arm64_x86_64-simulator/onnxruntime.a" | ||
| 29 | exit 1 | 31 | exit 1 |
| 30 | fi | 32 | fi |
| 31 | 33 |
| @@ -7,80 +7,80 @@ function(download_onnxruntime) | @@ -7,80 +7,80 @@ function(download_onnxruntime) | ||
| 7 | if(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64) | 7 | if(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64) |
| 8 | # For embedded systems | 8 | # For embedded systems |
| 9 | set(possible_file_locations | 9 | set(possible_file_locations |
| 10 | - $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.14.0.tgz | ||
| 11 | - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-1.14.0.tgz | ||
| 12 | - ${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-1.14.0.tgz | ||
| 13 | - /tmp/onnxruntime-linux-aarch64-1.14.0.tgz | ||
| 14 | - /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.14.0.tgz | 10 | + $ENV{HOME}/Downloads/onnxruntime-linux-aarch64-1.15.1.tgz |
| 11 | + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-aarch64-1.15.1.tgz | ||
| 12 | + ${PROJECT_BINARY_DIR}/onnxruntime-linux-aarch64-1.15.1.tgz | ||
| 13 | + /tmp/onnxruntime-linux-aarch64-1.15.1.tgz | ||
| 14 | + /star-fj/fangjun/download/github/onnxruntime-linux-aarch64-1.15.1.tgz | ||
| 15 | ) | 15 | ) |
| 16 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-aarch64-1.14.0.tgz") | ||
| 17 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-aarch64-1.14.0.tgz") | ||
| 18 | - set(onnxruntime_HASH "SHA256=9384d2e6e29fed693a4630303902392eead0c41bee5705ccac6d6d34a3d5db86") | 16 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-linux-aarch64-1.15.1.tgz") |
| 17 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-aarch64-1.15.1.tgz") | ||
| 18 | + set(onnxruntime_HASH "SHA256=85272e75d8dd841138de4b774a9672ea93c1be108d96038c6c34a62d7f976aee") | ||
| 19 | elseif(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL arm) | 19 | elseif(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL arm) |
| 20 | # For embedded systems | 20 | # For embedded systems |
| 21 | set(possible_file_locations | 21 | set(possible_file_locations |
| 22 | - $ENV{HOME}/Downloads/onnxruntime-linux-arm-1.14.0.zip | ||
| 23 | - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-1.14.0.zip | ||
| 24 | - ${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-1.14.0.zip | ||
| 25 | - /tmp/onnxruntime-linux-arm-1.14.0.zip | ||
| 26 | - /star-fj/fangjun/download/github/onnxruntime-linux-arm-1.14.0.zip | 22 | + $ENV{HOME}/Downloads/onnxruntime-linux-arm-1.15.1.zip |
| 23 | + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-arm-1.15.1.zip | ||
| 24 | + ${PROJECT_BINARY_DIR}/onnxruntime-linux-arm-1.15.1.zip | ||
| 25 | + /tmp/onnxruntime-linux-arm-1.15.1.zip | ||
| 26 | + /star-fj/fangjun/download/github/onnxruntime-linux-arm-1.15.1.zip | ||
| 27 | ) | 27 | ) |
| 28 | - set(onnxruntime_URL "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.14.0.zip") | ||
| 29 | - set(onnxruntime_URL2 "") | ||
| 30 | - set(onnxruntime_HASH "SHA256=61e4a4fa2d211a24e878e25bfcdee0daee5a68ac8d2d2967c0000b0fb079385c") | 28 | + set(onnxruntime_URL "https://huggingface.co/csukuangfj/onnxruntime-libs/resolve/main/onnxruntime-linux-arm-1.15.1.zip") |
| 29 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-arm-1.15.1.zip") | ||
| 30 | + set(onnxruntime_HASH "SHA256=867b96210a347e4b1bb949e7c9a3f222371ea0c00c9deaaba9fdd66c689f7fb7") | ||
| 31 | elseif(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) | 31 | elseif(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64) |
| 32 | # If you don't have access to the Internet, | 32 | # If you don't have access to the Internet, |
| 33 | # please pre-download onnxruntime | 33 | # please pre-download onnxruntime |
| 34 | set(possible_file_locations | 34 | set(possible_file_locations |
| 35 | - $ENV{HOME}/Downloads/onnxruntime-linux-x64-1.14.0.tgz | ||
| 36 | - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-1.14.0.tgz | ||
| 37 | - ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-1.14.0.tgz | ||
| 38 | - /tmp/onnxruntime-linux-x64-1.14.0.tgz | ||
| 39 | - /star-fj/fangjun/download/github/onnxruntime-linux-x64-1.14.0.tgz | 35 | + $ENV{HOME}/Downloads/onnxruntime-linux-x64-1.15.1.tgz |
| 36 | + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-1.15.1.tgz | ||
| 37 | + ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-1.15.1.tgz | ||
| 38 | + /tmp/onnxruntime-linux-x64-1.15.1.tgz | ||
| 39 | + /star-fj/fangjun/download/github/onnxruntime-linux-x64-1.15.1.tgz | ||
| 40 | ) | 40 | ) |
| 41 | 41 | ||
| 42 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-x64-1.14.0.tgz") | ||
| 43 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.14.0.tgz") | ||
| 44 | - set(onnxruntime_HASH "SHA256=92bf534e5fa5820c8dffe9de2850f84ed2a1c063e47c659ce09e8c7938aa2090") | 42 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-linux-x64-1.15.1.tgz") |
| 43 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-1.15.1.tgz") | ||
| 44 | + set(onnxruntime_HASH "SHA256=5492f9065f87538a286fb04c8542e9ff7950abb2ea6f8c24993a940006787d87") | ||
| 45 | # After downloading, it contains: | 45 | # After downloading, it contains: |
| 46 | - # ./lib/libonnxruntime.so.1.14.0 | ||
| 47 | - # ./lib/libonnxruntime.so, which is a symlink to lib/libonnxruntime.so.1.14.0 | 46 | + # ./lib/libonnxruntime.so.1.15.1 |
| 47 | + # ./lib/libonnxruntime.so, which is a symlink to lib/libonnxruntime.so.1.15.1 | ||
| 48 | # | 48 | # |
| 49 | # ./include | 49 | # ./include |
| 50 | # It contains all the needed header files | 50 | # It contains all the needed header files |
| 51 | if(SHERPA_ONNX_ENABLE_GPU) | 51 | if(SHERPA_ONNX_ENABLE_GPU) |
| 52 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-x64-gpu-1.14.0.tgz") | ||
| 53 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-gpu-1.14.0.tgz") | ||
| 54 | - set(onnxruntime_HASH "SHA256=d28fd59be62b9749071e2997c237b42f8e52661ae4d12862f77aa934750ead21") | 52 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-linux-x64-gpu-1.15.1.tgz") |
| 53 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-linux-x64-gpu-1.15.1.tgz") | ||
| 54 | + set(onnxruntime_HASH "SHA256=eab891393025edd5818d1aa26a42860e5739fcc49e3ca3f876110ec8736fe7f1") | ||
| 55 | 55 | ||
| 56 | set(possible_file_locations | 56 | set(possible_file_locations |
| 57 | - $ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.14.0.tgz | ||
| 58 | - ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.14.0.tgz | ||
| 59 | - ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.14.0.tgz | ||
| 60 | - /tmp/onnxruntime-linux-x64-gpu-1.14.0.tgz | ||
| 61 | - /star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.14.0.tgz | 57 | + $ENV{HOME}/Downloads/onnxruntime-linux-x64-gpu-1.15.1.tgz |
| 58 | + ${PROJECT_SOURCE_DIR}/onnxruntime-linux-x64-gpu-1.15.1.tgz | ||
| 59 | + ${PROJECT_BINARY_DIR}/onnxruntime-linux-x64-gpu-1.15.1.tgz | ||
| 60 | + /tmp/onnxruntime-linux-x64-gpu-1.15.1.tgz | ||
| 61 | + /star-fj/fangjun/download/github/onnxruntime-linux-x64-gpu-1.15.1.tgz | ||
| 62 | ) | 62 | ) |
| 63 | endif() | 63 | endif() |
| 64 | # After downloading, it contains: | 64 | # After downloading, it contains: |
| 65 | - # ./lib/libonnxruntime.so.1.14.1 | ||
| 66 | - # ./lib/libonnxruntime.so, which is a symlink to lib/libonnxruntime.so.1.14.1 | 65 | + # ./lib/libonnxruntime.so.1.15.1 |
| 66 | + # ./lib/libonnxruntime.so, which is a symlink to lib/libonnxruntime.so.1.15.1 | ||
| 67 | # ./lib/libonnxruntime_providers_cuda.so | 67 | # ./lib/libonnxruntime_providers_cuda.so |
| 68 | # ./include, which contains all the needed header files | 68 | # ./include, which contains all the needed header files |
| 69 | elseif(APPLE) | 69 | elseif(APPLE) |
| 70 | # If you don't have access to the Internet, | 70 | # If you don't have access to the Internet, |
| 71 | # please pre-download onnxruntime | 71 | # please pre-download onnxruntime |
| 72 | set(possible_file_locations | 72 | set(possible_file_locations |
| 73 | - $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.14.0.tgz | ||
| 74 | - ${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-1.14.0.tgz | ||
| 75 | - ${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-1.14.0.tgz | ||
| 76 | - /tmp/onnxruntime-osx-universal2-1.14.0.tgz | 73 | + $ENV{HOME}/Downloads/onnxruntime-osx-universal2-1.15.1.tgz |
| 74 | + ${PROJECT_SOURCE_DIR}/onnxruntime-osx-universal2-1.15.1.tgz | ||
| 75 | + ${PROJECT_BINARY_DIR}/onnxruntime-osx-universal2-1.15.1.tgz | ||
| 76 | + /tmp/onnxruntime-osx-universal2-1.15.1.tgz | ||
| 77 | ) | 77 | ) |
| 78 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-osx-universal2-1.14.0.tgz") | ||
| 79 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-universal2-1.14.0.tgz") | ||
| 80 | - set(onnxruntime_HASH "SHA256=348563df91f17a2ac010519f37c3b46fd5b79140974e5c5a90a57e032bb25925") | 78 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-osx-universal2-1.15.1.tgz") |
| 79 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-osx-universal2-1.15.1.tgz") | ||
| 80 | + set(onnxruntime_HASH "SHA256=ecb7651c216fe6ffaf4c578e135d98341bc5bc944c5dc6b725ef85b0d7747be0") | ||
| 81 | # After downloading, it contains: | 81 | # After downloading, it contains: |
| 82 | - # ./lib/libonnxruntime.1.14.0.dylib | ||
| 83 | - # ./lib/libonnxruntime.dylib, which is a symlink to lib/libonnxruntime.1.14.0.dylib | 82 | + # ./lib/libonnxruntime.1.15.1.dylib |
| 83 | + # ./lib/libonnxruntime.dylib, which is a symlink to lib/libonnxruntime.1.15.1.dylib | ||
| 84 | # | 84 | # |
| 85 | # ./include | 85 | # ./include |
| 86 | # It contains all the needed header files | 86 | # It contains all the needed header files |
| @@ -93,15 +93,15 @@ function(download_onnxruntime) | @@ -93,15 +93,15 @@ function(download_onnxruntime) | ||
| 93 | # | 93 | # |
| 94 | # for 32-bit windows | 94 | # for 32-bit windows |
| 95 | set(possible_file_locations | 95 | set(possible_file_locations |
| 96 | - $ENV{HOME}/Downloads/onnxruntime-win-x86-1.14.0.zip | ||
| 97 | - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x86-1.14.0.zip | ||
| 98 | - ${PROJECT_BINARY_DIR}/onnxruntime-win-x86-1.14.0.zip | ||
| 99 | - /tmp/onnxruntime-win-x86-1.14.0.zip | 96 | + $ENV{HOME}/Downloads/onnxruntime-win-x86-1.15.1.zip |
| 97 | + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x86-1.15.1.zip | ||
| 98 | + ${PROJECT_BINARY_DIR}/onnxruntime-win-x86-1.15.1.zip | ||
| 99 | + /tmp/onnxruntime-win-x86-1.15.1.zip | ||
| 100 | ) | 100 | ) |
| 101 | 101 | ||
| 102 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-win-x86-1.14.0.zip") | ||
| 103 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x86-1.14.0.zip") | ||
| 104 | - set(onnxruntime_HASH "SHA256=4214b130db602cbf31a6f26f25377ab077af0cf03c4ddd4651283e1fb68f56cf") | 102 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-win-x86-1.15.1.zip") |
| 103 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x86-1.15.1.zip") | ||
| 104 | + set(onnxruntime_HASH "SHA256=8de18fdf274a8adcd95272fcf58beda0fe2fb37f0cd62c02bc4bb6200429e4e2") | ||
| 105 | 105 | ||
| 106 | if(SHERPA_ONNX_ENABLE_GPU) | 106 | if(SHERPA_ONNX_ENABLE_GPU) |
| 107 | message(FATAL_ERROR "GPU support for Win32 is not supported!") | 107 | message(FATAL_ERROR "GPU support for Win32 is not supported!") |
| @@ -112,25 +112,25 @@ function(download_onnxruntime) | @@ -112,25 +112,25 @@ function(download_onnxruntime) | ||
| 112 | # | 112 | # |
| 113 | # for 64-bit windows | 113 | # for 64-bit windows |
| 114 | set(possible_file_locations | 114 | set(possible_file_locations |
| 115 | - $ENV{HOME}/Downloads/onnxruntime-win-x64-1.14.0.zip | ||
| 116 | - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-1.14.0.zip | ||
| 117 | - ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-1.14.0.zip | ||
| 118 | - /tmp/onnxruntime-win-x64-1.14.0.zip | 115 | + $ENV{HOME}/Downloads/onnxruntime-win-x64-1.15.1.zip |
| 116 | + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-1.15.1.zip | ||
| 117 | + ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-1.15.1.zip | ||
| 118 | + /tmp/onnxruntime-win-x64-1.15.1.zip | ||
| 119 | ) | 119 | ) |
| 120 | 120 | ||
| 121 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-win-x64-1.14.0.zip") | ||
| 122 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-1.14.0.zip") | ||
| 123 | - set(onnxruntime_HASH "SHA256=300eafef456748cde2743ee08845bd40ff1bab723697ff934eba6d4ce3519620") | 121 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-win-x64-1.15.1.zip") |
| 122 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-1.15.1.zip") | ||
| 123 | + set(onnxruntime_HASH "SHA256=261308ee5526dfd3f405ce8863e43d624a2e0bcd16b2d33cdea8c120ab3534d3") | ||
| 124 | 124 | ||
| 125 | if(SHERPA_ONNX_ENABLE_GPU) | 125 | if(SHERPA_ONNX_ENABLE_GPU) |
| 126 | - set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-win-x64-gpu-1.14.0.zip") | ||
| 127 | - set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-gpu-1.14.0.zip") | ||
| 128 | - set(onnxruntime_HASH "SHA256=b42aac412ec96db92c182b9c8b02190da00072a5efc4adcbecf9b62e933c30d3") | 126 | + set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.15.1/onnxruntime-win-x64-gpu-1.15.1.zip") |
| 127 | + set(onnxruntime_URL2 "https://huggingface.co/csukuangfj/sherpa-onnx-cmake-deps/resolve/main/onnxruntime-win-x64-gpu-1.15.1.zip") | ||
| 128 | + set(onnxruntime_HASH "SHA256=dcc3a385b415dd2e4a813018b71da5085d9b97774552edf17947826a255a3732") | ||
| 129 | set(possible_file_locations | 129 | set(possible_file_locations |
| 130 | - $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.14.0.zip | ||
| 131 | - ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.14.0.zip | ||
| 132 | - ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-gpu-1.14.0.zip | ||
| 133 | - /tmp/onnxruntime-win-x64-gpu-1.14.0.zip | 130 | + $ENV{HOME}/Downloads/onnxruntime-win-x64-gpu-1.15.1.zip |
| 131 | + ${PROJECT_SOURCE_DIR}/onnxruntime-win-x64-gpu-1.15.1.zip | ||
| 132 | + ${PROJECT_BINARY_DIR}/onnxruntime-win-x64-gpu-1.15.1.zip | ||
| 133 | + /tmp/onnxruntime-win-x64-gpu-1.15.1.zip | ||
| 134 | ) | 134 | ) |
| 135 | endif() | 135 | endif() |
| 136 | endif() | 136 | endif() |
-
请 注册 或 登录 后发表评论