onnxruntime/winml/adapter
sumitsays 43c45ddd66
Update DirectML EP changes from DmlDev as of 2021-06-07 (#7987)
* Merged PR 6093117: Fix test_DynamicQuantizedLinear_max_adjusted_expanded by allowing Identity operator to run on non-float inputs

Motivation:
As part of the OnnxConformance Backend tests, DynamicQuantizedLinear_max_adjusted_expanded is failing.

Root Cause:
- The test model has `Identity` operator as one of the node. The input of this node is of non-float data type.
- In DML, `Identity` operator is registered as operator which requires floating input.
- As per `DirectMLSchema.h`, support for non-float input has been added for `Identity` operator in DML but the same has not been reflected in the `OperatorRegistration.cpp`.

Changes:
- Removed all traces of the requiresFloatFormatsForGraph flag from it's definition and usage. This flag was only used for Identity and it's related operator.
- Added null check for the graphOutput nodeArg in GraphDescBuilder.cpp to stop the crash of the test.

Related work items: #33076298

* Merged PR 6103324: Remove usage of non-generic error code (FWP_E_NULL_POINTER)

Motivation:
Addressing Dwayne comment on the previous PR. [Ref: [6093117](https://dev.azure.com/microsoft/WindowsAI/_git/onnxruntime/pullrequest/6093117?discussionId=44292162&path=%2Fonnxruntime%2Fcore%2Fproviders%2Fdml%2FDmlExecutionProvider%2Fsrc%2FGraphPartitioner.cpp)]

Changes:
Inside the DML EP, we should not use some other platform specific error codes. Instead we should a appropriate generic error code.

Related work items: #33076298

Co-authored-by: Sumit Agarwal <sumitagarwal@microsoft.com>
2021-06-11 11:09:48 -07:00
..
abi_custom_registry_impl.cpp Update DirectML EP changes from DmlDev as of 2021-06-07 (#7987) 2021-06-11 11:09:48 -07:00
abi_custom_registry_impl.h Update DirectML EP changes from DmlDev as of 2021-06-07 (#7987) 2021-06-11 11:09:48 -07:00
pch.h
winml_adapter_apis.h Add Thread Spinning Session Option in WinML (#7498) 2021-04-30 11:44:58 -07:00
winml_adapter_c_api.cpp Add Thread Spinning Session Option in WinML (#7498) 2021-04-30 11:44:58 -07:00
winml_adapter_c_api.h Add Thread Spinning Session Option in WinML (#7498) 2021-04-30 11:44:58 -07:00
winml_adapter_dml.cpp Update DirectML version to 1.5.1 and enable ARM/ARM64 builds with DML (#7511) 2021-04-30 00:49:30 -07:00
winml_adapter_environment.cpp Change onnxruntime::make_unique to std::make_unique (#7502) 2021-04-29 17:04:53 -07:00
winml_adapter_execution_provider.cpp
winml_adapter_model.cpp
winml_adapter_model.h
winml_adapter_session.cpp Add ability for memory arenas to "shrink" periodically (#7284) 2021-05-08 07:53:21 -07:00