diff --git a/VERSION_NUMBER b/VERSION_NUMBER
index 41c11ffb73..4a02d2c317 100644
--- a/VERSION_NUMBER
+++ b/VERSION_NUMBER
@@ -1 +1 @@
-1.16.1
+1.16.2
diff --git a/docs/python/README.rst b/docs/python/README.rst
index f3cd6123f3..bcf7c635af 100644
--- a/docs/python/README.rst
+++ b/docs/python/README.rst
@@ -8,6 +8,11 @@ For more information on ONNX Runtime, please see `aka.ms/onnxruntime `_
or the `Github project `_.
"""
-__version__ = "1.16.1"
+__version__ = "1.16.2"
__author__ = "Microsoft"
# we need to do device version validation (for example to check Cuda version for an onnxruntime-training package).
diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc
index a4776623c5..70d2d0fe5d 100644
--- a/onnxruntime/core/session/onnxruntime_c_api.cc
+++ b/onnxruntime/core/session/onnxruntime_c_api.cc
@@ -2744,7 +2744,7 @@ static_assert(offsetof(OrtApi, GetBuildInfoString) / sizeof(void*) == 254, "Size
static_assert(offsetof(OrtApi, KernelContext_GetResource) / sizeof(void*) == 265, "Size of version 16 API cannot change");
// So that nobody forgets to finish an API version, this check will serve as a reminder:
-static_assert(std::string_view(ORT_VERSION) == "1.16.1",
+static_assert(std::string_view(ORT_VERSION) == "1.16.2",
"ORT_Version change detected, please follow below steps to ensure OrtApi is updated properly");
// 1. Update the hardcoded version string in above static_assert to silence it
// 2. If there were any APIs added to ort_api_1_to_16 above:
diff --git a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml
index 420bffc6c6..1e3d20b857 100644
--- a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml
+++ b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml
@@ -74,6 +74,7 @@ stages:
--volume /data/onnx:/data/onnx:ro \
--volume $(Build.SourcesDirectory):/onnxruntime_src \
--volume $(Build.BinariesDirectory):/build \
+ --volume /data/models:/build/models:ro \
--volume $HOME/.onnx:/home/onnxruntimedev/.onnx \
--volume $(ORT_CACHE_DIR):/cache \
-e ALLOW_RELEASED_ONNX_OPSET_ONLY=0 \
@@ -92,116 +93,13 @@ stages:
--parallel \
--build_wheel \
--build_csharp \
- --enable_onnx_tests \
- --enable_transformers_tool_test \
+ --enable_onnx_tests --enable_symbolic_shape_infer_tests \
--use_cache \
- --build_java --build_nodejs --update --build --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON; \
+ --build_java --build_nodejs --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON; \
ccache -sv; \
ccache -z"
workingDirectory: $(Build.SourcesDirectory)
- - script: |
- ln -s /data/models $(Build.BinariesDirectory)/models
- displayName: link model dir
-
- - bash: |
- mkdir -p $HOME/.onnx
- docker run --rm \
- --volume /data/onnx:/data/onnx:ro \
- --volume $(Build.SourcesDirectory):/onnxruntime_src \
- --volume $(Build.BinariesDirectory):/build \
- --volume /data/models:/build/models:ro \
- --volume $HOME/.onnx:/home/onnxruntimedev/.onnx \
- -e ALLOW_RELEASED_ONNX_OPSET_ONLY=0 \
- -e NIGHTLY_BUILD \
- -e BUILD_BUILDNUMBER \
- onnxruntimecpubuild \
- /bin/bash -c "
- set -ex; \
- pushd /onnxruntime_src/csharp; \
- dotnet restore /onnxruntime_src/csharp/OnnxRuntime.DesktopOnly.CSharp.sln; \
- dotnet build /onnxruntime_src/csharp/OnnxRuntime.DesktopOnly.CSharp.sln; \
- dotnet test /onnxruntime_src/csharp/OnnxRuntime.DesktopOnly.CSharp.sln -f net6.0 --no-build -l \"console;verbosity=normal\"; \
- popd
- "
- displayName: 'Dotnet build C# sln and Test'
-
- - task: CmdLine@2
- displayName: 'Install python deps and run java tests'
- inputs:
- script: |
- set -e -x
- python3 -m pip uninstall -y ort-nightly-gpu ort-nightly onnxruntime onnxruntime-gpu onnxruntime-training onnxruntime-directml ort-nightly-directml onnx -qq
- cp $(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/manylinux/requirements.txt $(Build.BinariesDirectory)/requirements.txt
- # Test ORT with the latest ONNX release.
- sed -i "s/git+http:\/\/github\.com\/onnx\/onnx.*/onnx/" $(Build.BinariesDirectory)/requirements.txt
- python3 -m pip install -r $(Build.BinariesDirectory)/requirements.txt
- mkdir $(Build.BinariesDirectory)/requirements_torch_cpu/
- cp $(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/training/ortmodule/stage1/requirements_torch_cpu/requirements.txt $(Build.BinariesDirectory)/requirements_torch_cpu/requirements.txt
- python3 -m pip install -r $(Build.BinariesDirectory)/requirements_torch_cpu/requirements.txt
- cd $(Build.SourcesDirectory)/java
- $(Build.SourcesDirectory)/java/gradlew "cmakeCheck" "-DcmakeBuildDir=$(Build.BinariesDirectory)/Release"
-
- - task: CmdLine@2
- displayName: 'Install Release python package'
- inputs:
- script: |
- rm -rf $(Build.BinariesDirectory)/Release/onnxruntime $(Build.BinariesDirectory)/Release/pybind11
- python3 -m pip install $(Build.BinariesDirectory)/Release/dist/*.whl
-
- - task: PythonScript@0
- displayName: 'Run Release unit tests'
- inputs:
- scriptPath: $(Build.SourcesDirectory)/tools/ci_build/build.py
- workingDirectory: $(Build.BinariesDirectory)/Release
- arguments: >-
- --build_dir $(Build.BinariesDirectory)
- --cmake_generator Ninja
- --config Release
- --test
- --skip_submodule_sync
- --build_shared_lib
- --parallel
- --build_wheel
- --enable_onnx_tests
- --enable_transformers_tool_test
- --build_nodejs
- --ctest_path ""
-
- - task: CmdLine@2
- displayName: 'Install Debug python package'
- inputs:
- script: |
- set -e -x
- rm -rf $(Build.BinariesDirectory)/Debug/onnxruntime $(Build.BinariesDirectory)/Debug/pybind11
- python3 -m pip uninstall -y ort-nightly-gpu ort-nightly onnxruntime onnxruntime-gpu onnxruntime-training onnxruntime-directml ort-nightly-directml -qq
- python3 -m pip install $(Build.BinariesDirectory)/Debug/dist/*.whl
-
- - task: PythonScript@0
- displayName: 'Run Debug unit tests'
- inputs:
- scriptPath: $(Build.SourcesDirectory)/tools/ci_build/build.py
- workingDirectory: $(Build.BinariesDirectory)/Debug
- arguments: >-
- --build_dir $(Build.BinariesDirectory)
- --cmake_generator Ninja
- --config Debug
- --test
- --skip_submodule_sync
- --build_shared_lib
- --parallel
- --build_wheel
- --enable_onnx_tests
- --enable_transformers_tool_test
- --build_nodejs
- --ctest_path ""
-
- - task: PythonScript@0
- displayName: 'Symbolic shape infer'
- inputs:
- scriptPath: $(Build.BinariesDirectory)/Release/onnxruntime_test_python_symbolic_shape_infer.py
- workingDirectory: $(Build.BinariesDirectory)/Release
-
- task: PublishTestResults@2
displayName: 'Publish unit test results'
inputs:
diff --git a/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml
index 806ed797f8..7e304ad11f 100644
--- a/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml
+++ b/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml
@@ -72,23 +72,6 @@ stages:
MachinePool: onnxruntime-Win2022-GPU-T4
isTraining: true
-- stage: dml
- dependsOn: []
- jobs:
- - template: templates/jobs/win-ci-vs-2022-job.yml
- parameters:
- BuildConfig: 'RelWithDebInfo'
- EnvSetupScript: setup_env.bat
- buildArch: x64
- additionalBuildFlags: --enable_pybind --use_dml --enable_wcos --use_winml
- msbuildPlatform: x64
- isX86: false
- job_name_suffix: x64_RelWithDebInfo
- RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
- ORT_EP_NAME: DML
- WITH_CACHE: true
- MachinePool: onnxruntime-Win2022-GPU-dml-A10
-
- stage: kernelDocumentation
dependsOn: []
jobs: