[DML EP] Update DML_FEATURE_LEVEL 5.0 (#14172)

### Description
DML EP was using very old feature level (2.0) which may lead to model
(having latest operator) execution failure, if model is running against
old DirectML.dll.



### 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:
Sumit Agarwal 2023-01-09 13:00:56 -08:00 committed by GitHub
parent 1be36913cc
commit 906f578be8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ std::shared_ptr<IExecutionProviderFactory> DMLProviderFactoryCreator::Create(int
ComPtr<IDMLDevice> dml_device;
ORT_THROW_IF_FAILED(DMLCreateDevice1(d3d12_device.Get(),
flags,
DML_FEATURE_LEVEL_2_0,
DML_FEATURE_LEVEL_5_0,
IID_PPV_ARGS(&dml_device)));
return CreateExecutionProviderFactory_DML(dml_device.Get(), cmd_queue.Get());