-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding DML to python cuda package (#22606)
- Loading branch information
Showing
5 changed files
with
70 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tools/ci_build/github/azure-pipelines/stages/jobs/steps/py_packaging_test_step.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
parameters: | ||
- name: EP_NAME | ||
type: string | ||
default: CPU | ||
|
||
- name: PYTHON_VERSION | ||
type: string | ||
|
||
steps: | ||
- powershell: | | ||
python -m pip uninstall -y onnxruntime onnxruntime-gpu -qq | ||
Get-ChildItem -Path $(Build.ArtifactStagingDirectory)/*cp${{ replace(parameters.PYTHON_VERSION,'.','') }}*.whl | foreach {pip --disable-pip-version-check install --upgrade $_.fullname tabulate} | ||
mkdir -p $(Agent.TempDirectory)\ort_test_data | ||
Copy-Item -Path $(Build.sourcesDirectory)/onnxruntime/test/python/onnx_backend_test_series.py -Destination $(Agent.TempDirectory)\ort_test_data | ||
Copy-Item -Recurse -Path $(Build.sourcesDirectory)/onnxruntime/test/testdata -Destination $(Agent.TempDirectory)\ort_test_data | ||
cd $(Agent.TempDirectory)\ort_test_data | ||
python onnx_backend_test_series.py --devices ${{ parameters.EP_NAME }} -v | ||
cd $(Agent.TempDirectory) | ||
Remove-Item -Path $(Agent.TempDirectory)\ort_test_data -Recurse -Force | ||
workingDirectory: '$(Build.sourcesDirectory)' | ||
displayName: 'Run Python Tests with ${{ parameters.EP_NAME }} EP' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters