mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-27 03:11:28 +00:00
Update to use DirectML Preview package (#17868)
### Description Updating to use [**`Microsoft.AI.DirectML.Preview 1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5`**](https://www.nuget.org/packages/Microsoft.AI.DirectML.Preview/1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5) ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
parent
defde2cd9e
commit
a9290e9403
6 changed files with 5 additions and 40 deletions
|
|
@ -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.12.0" targetFramework="native" />
|
||||
<package id="Microsoft.AI.DirectML.Preview" version="1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5" targetFramework="native" />
|
||||
<package id="Microsoft.Windows.CppWinRT" version="2.0.201201.7" targetFramework="native" />
|
||||
</packages>
|
||||
|
|
|
|||
|
|
@ -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.12.0" targetFramework="native" />
|
||||
<package id="Microsoft.AI.DirectML.Preview" version="1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5" targetFramework="native" />
|
||||
<package id="Microsoft.Windows.CppWinRT" version="2.0.201201.7" targetFramework="native" />
|
||||
</packages>
|
||||
|
|
|
|||
2
cmake/external/dml.cmake
vendored
2
cmake/external/dml.cmake
vendored
|
|
@ -41,7 +41,7 @@ if (NOT onnxruntime_USE_CUSTOM_DIRECTML)
|
|||
set(NUGET_CONFIG ${PROJECT_SOURCE_DIR}/../NuGet.config)
|
||||
set(PACKAGES_CONFIG ${PROJECT_SOURCE_DIR}/../packages.config)
|
||||
get_filename_component(PACKAGES_DIR ${CMAKE_CURRENT_BINARY_DIR}/../packages ABSOLUTE)
|
||||
set(DML_PACKAGE_DIR ${PACKAGES_DIR}/Microsoft.AI.DirectML.1.12.0)
|
||||
set(DML_PACKAGE_DIR ${PACKAGES_DIR}/Microsoft.AI.DirectML.Preview.1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5)
|
||||
|
||||
# Restore nuget packages, which will pull down the DirectML redist package.
|
||||
add_custom_command(
|
||||
|
|
|
|||
|
|
@ -3,38 +3,6 @@
|
|||
#pragma once
|
||||
|
||||
|
||||
struct DML_MATRIX_MULTIPLY_INTEGER_TO_FLOAT_OPERATOR_DESC
|
||||
{
|
||||
const DML_TENSOR_DESC* ATensor;
|
||||
const DML_TENSOR_DESC* AScaleTensor;
|
||||
_Maybenull_ const DML_TENSOR_DESC* AZeroPointTensor;
|
||||
const DML_TENSOR_DESC* BTensor;
|
||||
const DML_TENSOR_DESC* BScaleTensor;
|
||||
_Maybenull_ const DML_TENSOR_DESC* BZeroPointTensor;
|
||||
_Maybenull_ const DML_TENSOR_DESC* BiasTensor;
|
||||
const DML_TENSOR_DESC* OutputTensor;
|
||||
};
|
||||
const int DML_OPERATOR_MATRIX_MULTIPLY_INTEGER_TO_FLOAT = 0x80000011;
|
||||
|
||||
struct DML_QUANTIZED_LINEAR_AVERAGE_POOLING_OPERATOR_DESC
|
||||
{
|
||||
const DML_TENSOR_DESC* InputTensor;
|
||||
const DML_TENSOR_DESC* InputScaleTensor;
|
||||
_Maybenull_ const DML_TENSOR_DESC* InputZeroPointTensor;
|
||||
const DML_TENSOR_DESC* OutputScaleTensor;
|
||||
_Maybenull_ const DML_TENSOR_DESC* OutputZeroPointTensor;
|
||||
const DML_TENSOR_DESC* OutputTensor;
|
||||
UINT DimensionCount;
|
||||
_Field_size_(DimensionCount) const UINT* Strides;
|
||||
_Field_size_(DimensionCount) const UINT* WindowSize;
|
||||
_Field_size_(DimensionCount) const UINT* StartPadding;
|
||||
_Field_size_(DimensionCount) const UINT* EndPadding;
|
||||
_Field_size_(DimensionCount) const UINT* Dilations;
|
||||
BOOL IncludePadding;
|
||||
};
|
||||
const int DML_OPERATOR_QUANTIZED_LINEAR_AVERAGE_POOLING = 0x8000000B;
|
||||
|
||||
|
||||
namespace ApiTraits
|
||||
{
|
||||
template <typename T>
|
||||
|
|
@ -2711,11 +2679,8 @@ inline gsl::czstring ToString(DML_OPERATOR_TYPE value)
|
|||
case DML_OPERATOR_RESAMPLE2: return "DML_OPERATOR_RESAMPLE2";
|
||||
case DML_OPERATOR_RESAMPLE_GRAD1: return "DML_OPERATOR_RESAMPLE_GRAD1";
|
||||
case DML_OPERATOR_DIAGONAL_MATRIX1: return "DML_OPERATOR_DIAGONAL_MATRIX1";
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4063)
|
||||
case DML_OPERATOR_MATRIX_MULTIPLY_INTEGER_TO_FLOAT: return "DML_OPERATOR_MATRIX_MULTIPLY_INTEGER_TO_FLOAT";
|
||||
case DML_OPERATOR_MULTIHEAD_ATTENTION: return "DML_OPERATOR_MULTIHEAD_ATTENTION";
|
||||
#pragma warning(pop)
|
||||
default:
|
||||
assert(false);
|
||||
return "<unknown>";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.AI.DirectML" version="1.12.0" targetFramework="native" />
|
||||
<package id="Microsoft.AI.DirectML.Preview" version="1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5" targetFramework="native" />
|
||||
<package id="Microsoft.Windows.CppWinRT" version="2.0.201201.7" targetFramework="native" />
|
||||
<package id="google.protobuf.tools" version="3.21.12" targetFramework="native" />
|
||||
</packages>
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ def generate_repo_url(line_list, repo_url, commit_id):
|
|||
|
||||
|
||||
def generate_dependencies(xml_text, package_name, version):
|
||||
dml_dependency = '<dependency id="Microsoft.AI.DirectML" version="1.12.0"/>'
|
||||
dml_dependency = '<dependency id="Microsoft.AI.DirectML.Preview" version="1.13.0-deveb7a0e89e82dcf90ae58761b35fb3aebc2275ef5"/>'
|
||||
|
||||
if package_name == "Microsoft.AI.MachineLearning":
|
||||
xml_text.append("<dependencies>")
|
||||
|
|
|
|||
Loading…
Reference in a new issue