Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
96de9fe
Cherry-Pick 2b7f26af7c: Add GridSample implementation to DirectML (#1…
smk2007 May 8, 2023
ed46afd
Fix release version suffix for RC builds (#15865) (#15901)
natke May 11, 2023
bf50a37
User/linneamay/roi align 16 (#15812) (#15896)
linnealovespie May 11, 2023
6ef420e
Add RC version missing cherry pick (#15920)
natke May 12, 2023
2fd1aea
Cherry-pick some PRs to the release branch (#15913)
snnn May 12, 2023
a3febf9
Cherry-pick azure ep for nuget (#15941)
RandySheriffH May 16, 2023
0f3aa9d
Add a comma to cgmanifest.json (#15998)
snnn May 19, 2023
6cdf071
Cherry-picks to the release branch (#16017)
snnn May 19, 2023
ade58cf
Cherry-pick 4 commits to rel-1.15.0 branch (#16021)
snnn May 20, 2023
ae2395c
Cherry-pick the fix to build rel-1.15 python package for AzureEP (#16…
RandySheriffH May 23, 2023
ddaaeea
Disable a test in attention_op_test_helper.cc (#16054)
snnn May 23, 2023
638146b
Update machine pool for AzureEP rel-1.15 (#16055)
RandySheriffH May 24, 2023
0a381cc
Update url and checksum in Package.swift with the 1.15.0 iOS package …
skottmckay Jun 6, 2023
ff1e446
ONNX Runtime 1.15.1 release (#16365)
snnn Jun 15, 2023
8e0d461
Increase version number to 1.15.1 (#16372)
snnn Jun 16, 2023
baeece4
patch for 1.15.1 (#16385)
mszhanyi Jun 16, 2023
1377cee
Always quantize global average pool
mapetre Dec 7, 2022
9488858
added qlinearconvtranpose
xdrBogdan22 Jan 4, 2023
4ae19f2
updated code for convtranspose2d to work for the quadric version of o…
xdrBogdan22 Feb 28, 2023
78daba3
fixed registry
xdrBogdan22 Feb 28, 2023
e3ad3d1
Adds shape inference for conv2d_transpose
mapetre Mar 31, 2023
002e202
Add QLinearConvTranspose CPU implementation
mapetre Apr 5, 2023
f7499d8
Added int32_t templated version of Col2im
mapetre Apr 6, 2023
e12025e
ci: Create wheel and release upon each push to main (#1)
syassami May 4, 2023
0bf6a80
Shape inference for QLinearAdd and QLinearConcat
mapetre Apr 13, 2023
902985d
Shape inference for QLinearMul
mapetre Apr 13, 2023
a4ae499
Shape inference for QLinearLeakyReLU
mapetre Apr 18, 2023
4d94bb2
Adds shape inference for remaining QLinear operators
mapetre Apr 19, 2023
92c1b0c
Add unittest for QLinear shape inference
mapetre Apr 19, 2023
ce24ec2
Updated shape inference to default to ONNX implementation
mapetre Apr 21, 2023
18784ea
Applied python linter
mapetre Apr 21, 2023
1cb3753
Refactored QLinear shape inference test
mapetre Apr 25, 2023
fa7edaa
Addressed PR comments
mapetre Apr 25, 2023
cf609f6
Add type inference support for custom operators
mapetre May 17, 2023
193cb3b
Removed formatting changes
mapetre May 18, 2023
62b87c3
Add shape inference for QLinearConvTranspose
mapetre May 19, 2023
17828cb
Add unnittest for QLinearConvTranspose shape inference
mapetre May 19, 2023
7b9cb4e
Update README_EPU.md
syassami Jun 1, 2023
9492593
ci: Test on Pull Request
syassami Jun 1, 2023
2b04dd0
bug fix for when there are shared initializers across multiple pads i…
veerbhan Aug 23, 2023
a01fab2
Bump actions/deploy-pages from 1 to 2
dependabot[bot] Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gdn/.gdntsa
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"codebaseName": "onnxruntime_master"
"codebaseName": "onnxruntime_main"
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Lint
on:
push:
branches:
- master
- main
- rel-*
pull_request:

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Linux_CI
on:
push:
branches:
- master
- main
- rel-*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
Onnxruntime-TVM:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore csharp/ApiDocs/ApiDocs.csproj
- name: Download DocFX
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ jobs:
python3 -m pip install --upgrade pip
cd docs/python
python3 -m pip install -r requirements.txt
python3 -m pip install -i https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ ort-nightly
python3 -m pip install --pre onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_nightly_cpu.html
python3 -m pip list
- name: Generate Python docs with Sphinx
run: |
cd tools/doc
./builddoc.sh /usr/bin ../.. ../../build
- name: Log source commit
run: git rev-parse --short HEAD > build/docs/inference/html/source-version.txt
run: git rev-parse --short HEAD > build/docs/html/source-version.txt
- name: Move Python docs into site
run: |
rm -rf _site/docs/api/python
mkdir -p _site/docs/api
mv build/docs/inference/html _site/docs/api/python
mkdir -p _site/docs/api/
mv build/docs/html _site/docs/api/python
- name: Upload docs artifact
uses: actions/upload-artifact@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: Windows_CI
on:
push:
branches:
- master
- main
- rel-*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
Onnxruntime-TVM:
runs-on: windows-2019
Expand Down
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/04-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ body:
attributes:
label: Execution Provider
options:
- WebGL
- WASM
- "'webgl' (WebGL)"
- "'wasm'/'cpu' (WebAssembly CPU)"
- "'xnnpack' (WebAssembly XNNPACK)"
- "'webgpu' (WebGPU)"
- Other / Unknown
multiple: yes
validations:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .github/workflows/publish-objectivec-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:
jobs:
build:
name: Generate Objective-C API docs
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v3

Expand Down
133 changes: 133 additions & 0 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: Windows_SCA
on:
push:
branches:
- main
- rel-*
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
AZCOPY_AUTO_LOGIN_TYPE: MSI
AZCOPY_MSI_CLIENT_ID: 63b63039-6328-442f-954b-5a64d124e5b4

jobs:
Onnxruntime-SCA-training-CUDA:
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
steps:
- uses: actions/checkout@v3
with:
submodules: false
- uses: actions/setup-python@v3
with:
python-version: '3.11.x'
architecture: 'x64'

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Download cuda
run: azcopy.exe cp --recursive "https://lotusscus.blob.core.windows.net/models/cuda_sdk/v11.8" cuda_sdk


- name: Delete build folder
run: |
if (Test-Path D:\b) { Remove-Item -Recurse -Force D:\b }
&tools\ci_build\github\windows\install_third_party_deps.ps1 -cpu_arch x64 -install_prefix D:\b\Debug\installed -build_config Debug

# The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter.
- name: Build code
env:
CAExcludePath: 'C:\Program Files;D:\b;${{ github.workspace }}\cmake'
run: python tools\ci_build\build.py --enable_training --build_java --compile_no_warning_as_error --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_pybind --cmake_extra_defines onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES=ON --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON --cmake_extra_defines onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE=ON --use_cuda --cuda_home=${{ github.workspace }}\cuda_sdk\v11.8 --enable_cuda_profiling --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=75

- name: Generate sarif
working-directory: D:\b
run: npx @microsoft/sarif-multitool merge *.sarif --recurse --output-directory=${{ github.workspace }}\output --output-file=MergeResult.sarif --merge-runs && dir ${{ github.workspace }}\output

- name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v2
continue-on-error: true
with:
sarif_file: ${{ github.workspace }}\output\MergeResult.sarif
category: VS_SCA

# No python
Onnxruntime-SCA-win32-WINML-x64:
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
steps:
- uses: actions/checkout@v3
with:
submodules: false
- uses: actions/setup-python@v3
with:
python-version: '3.11.x'
architecture: 'x64'

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Delete build folder
run: |
if (Test-Path D:\b) { Remove-Item -Recurse -Force D:\b }
&tools\ci_build\github\windows\install_third_party_deps.ps1 -cpu_arch x64 -install_prefix D:\b\Debug\installed -build_config Debug

# The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter.
- name: Build code
env:
CAExcludePath: 'C:\Program Files;D:\b;${{ github.workspace }}\cmake'
run: python tools\ci_build\build.py --enable_training --build_java --compile_no_warning_as_error --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --cmake_extra_defines onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES=ON --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON --cmake_extra_defines onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE=ON --ms_experimental --use_dml --use_winml --disable_rtti --enable_wcos --build_shared_lib

- name: Generate sarif
working-directory: D:\b
run: npx @microsoft/sarif-multitool merge *.sarif --recurse --output-directory=${{ github.workspace }}\output --output-file=MergeResult.sarif --merge-runs && dir ${{ github.workspace }}\output

- name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v2
continue-on-error: true
with:
sarif_file: ${{ github.workspace }}\output\MergeResult.sarif
category: VS_SCA_WIN32_WINML_X64

# No java, No python
Onnxruntime-SCA-win32-WINML-x86:
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
steps:
- uses: actions/checkout@v3
with:
submodules: false
- uses: actions/setup-python@v3
with:
python-version: '3.11.x'
architecture: 'x86'

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Delete build folder
run: |
if (Test-Path D:\b) { Remove-Item -Recurse -Force D:\b }
&tools\ci_build\github\windows\install_third_party_deps.ps1 -cpu_arch x86 -install_prefix D:\b\Debug\installed -build_config Debug

# The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter.
- name: Build code
env:
CAExcludePath: 'C:\Program Files;D:\b;${{ github.workspace }}\cmake'
run: python tools\ci_build\build.py --enable_training --compile_no_warning_as_error --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --cmake_extra_defines onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES=ON --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON --cmake_extra_defines onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE=ON --ms_experimental --use_dml --use_winml --disable_rtti --enable_wcos --build_shared_lib

- name: Generate sarif
working-directory: D:\b
run: npx @microsoft/sarif-multitool merge *.sarif --recurse --output-directory=${{ github.workspace }}\output --output-file=MergeResult.sarif --merge-runs && dir ${{ github.workspace }}\output

- name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v2
continue-on-error: true
with:
sarif_file: ${{ github.workspace }}\output\MergeResult.sarif
category: VS_SCA_WIN32_WINML_X86
47 changes: 47 additions & 0 deletions .github/workflows/wheel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI && Release & Upload Wheel

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build_and_upload_wheel:
runs-on: linux-mk
container:
image: ghcr.io/quadric-io/tvm:devel
options: "--mount type=bind,source=${{ github.workspace }},target=/workspace"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build ONNX Runtime wheel
working-directory: /workspace
run: |
python3 -m pip install cmake --upgrade
./build.sh --build_wheel --config Release --parallel ${{ github.event_name == 'pull_request' && ' ' || '--skip_tests'}} --skip_submodule_sync
wheel_path=$(find . -name '*.whl' | xargs readlink -f)
echo "wheel_path=$wheel_path" >> $GITHUB_ENV
- name: Count releases
id: count_releases
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
apt-get update && apt-get install curl jq -y
count=$(curl --request GET \
--url https://api.github.com/repos/${{ github.repository }}/releases \
--header "Authorization: Bearer $GITHUB_TOKEN" | jq length)
echo "count=$count" >> $GITHUB_ENV
- name: Create Release
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.count }}
name: Release v${{ env.count }}
files: ${{ env.wheel_path }}
25 changes: 25 additions & 0 deletions .pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,31 @@ extends:
- script: |
dir $(Build.SourcesDirectory)\unzipped\runtimes\win-x64\_native

- task: EsrpCodeSigning@2
displayName: "Sign Nuget package"
inputs:
ConnectedServiceName: 'OnnxRuntime CodeSign 20190817'
FolderPath: $(Build.ArtifactStagingDirectory)
Pattern: '*.nupkg'
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetVerify",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
}
]

- job: NuGet_Publishing
pool:
type: windows
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/nuget_config/x64/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="python" version="3.9.7" targetFramework="native" />
<package id="Microsoft.AI.DirectML" version="1.10.1" targetFramework="native" />
<package id="Microsoft.AI.DirectML" version="1.12.0" targetFramework="native" />
<package id="Microsoft.Windows.CppWinRT" version="2.0.201201.7" targetFramework="native" />
</packages>
2 changes: 1 addition & 1 deletion .pipelines/nuget_config/x86/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="pythonx86" version="3.9.7" targetFramework="native" />
<package id="Microsoft.AI.DirectML" version="1.10.1" targetFramework="native" />
<package id="Microsoft.AI.DirectML" version="1.12.0" targetFramework="native" />
<package id="Microsoft.Windows.CppWinRT" version="2.0.201201.7" targetFramework="native" />
</packages>
6 changes: 3 additions & 3 deletions .pipelines/windowsai-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ jobs:

# must call vsdevcmd first to add cmake to PATH
- script: |
curl -O -L https://github.com/Kitware/CMake/releases/download/v3.24.3/cmake-3.24.3-windows-x86_64.zip
7z x cmake-3.24.3-windows-x86_64.zip
curl -O -L https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-windows-x86_64.zip
7z x cmake-3.26.3-windows-x86_64.zip
set PYTHONHOME=$(Build.BinariesDirectory)\${{ parameters.PythonPackageName }}.3.9.7\tools
set PYTHONPATH=$(Build.BinariesDirectory)\${{ parameters.PythonPackageName }}.3.9.7\tools
$(Build.BinariesDirectory)\${{ parameters.PythonPackageName }}.3.9.7\tools\python.exe "$(Build.SourcesDirectory)\tools\ci_build\build.py" --build_dir $(Build.BinariesDirectory) --build_shared_lib --enable_onnx_tests --ms_experimental --use_dml --use_winml --cmake_generator "Visual Studio 16 2019" --update --config RelWithDebInfo --enable_lto --use_telemetry --disable_rtti --enable_wcos $(BuildFlags) --cmake_extra_defines CMAKE_SYSTEM_VERSION=10.0.19041.0 --cmake_path $(Build.BinariesDirectory)\cmake-3.24.3-windows-x86_64\bin\cmake.exe --ctest_path $(Build.BinariesDirectory)\cmake-3.24.3-windows-x86_64\bin\ctest.exe
$(Build.BinariesDirectory)\${{ parameters.PythonPackageName }}.3.9.7\tools\python.exe "$(Build.SourcesDirectory)\tools\ci_build\build.py" --build_dir $(Build.BinariesDirectory) --build_shared_lib --enable_onnx_tests --ms_experimental --use_dml --use_winml --cmake_generator "Visual Studio 16 2019" --update --config RelWithDebInfo --enable_lto --use_telemetry --disable_rtti --enable_wcos $(BuildFlags) --cmake_extra_defines CMAKE_SYSTEM_VERSION=10.0.19041.0 --cmake_path $(Build.BinariesDirectory)\cmake-3.26.3-windows-x86_64\bin\cmake.exe --ctest_path $(Build.BinariesDirectory)\cmake-3.26.3-windows-x86_64\bin\ctest.exe
workingDirectory: '$(Build.BinariesDirectory)'
displayName: 'Generate cmake config'

Expand Down
26 changes: 6 additions & 20 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,10 @@ if let pod_archive_path = ProcessInfo.processInfo.environment["ORT_IOS_POD_LOCAL
package.targets.append(Target.binaryTarget(name: "onnxruntime", path: pod_archive_path))

} else {
// When creating the release version:
// - remove the fatalError
// - uncomment the package.targets.append call
// - update the major/minor/patch version info in the url
// - insert the checksum info from the onnxruntime-ios-packaging-pipeline CI's 'Print ORT iOS Pod checksum'
// stage output (or download the pod archive artifact from the CI and run `shasum -a 256 <path to pod zip>`
// to manually calculate it).
// The checksum length and chars should look something like
// "c89cd106ff02eb3892243acd7c4f2bd8e68c2c94f2751b5e35f98722e10c042b"
//
// package.targets.append(
// Target.binaryTarget(name: "onnxruntime",
// url: "https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-c-<major.minor.patch>.zip",
// checksum: "Insert checksum here")
// )

fatalError("It is not valid to use a non-release branch from https://github.com/microsoft/onnxruntime.\n" +
"Please use a release branch (e.g. rel-1.15.0), or build the ONNX Runtime iOS pod archive locally " +
"and set the ORT_IOS_POD_LOCAL_PATH environment variable.\n" +
"See Package.swift for more information on using a local pod archive.")
// ORT 1.15.0 release
package.targets.append(
Target.binaryTarget(name: "onnxruntime",
url: "https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-c-1.15.0.zip",
checksum: "9b41412329a73d7d298b1d94ab40ae9adb65cb84f132054073bc82515b4f5f82")
)
}
Loading