[DML EP] Add missing member initializer DmlGraphNodeCreateInfo::nodeCount (#17505)

### Description
<!-- Describe your changes. -->

This adds a missing member initialization.

### 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. -->

It caused an access violation in
`Dml::GraphDescBuilder::BuildGraphDesc`.
This commit is contained in:
Kaz Nishimura 2023-09-15 09:47:45 +09:00 committed by GitHub
parent 41d2ff622c
commit 5ed5f13920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ namespace Windows::AI::MachineLearning::Adapter
// Either nodesAsOperatorDesc or nodesAsIDMLOperator can have non-zero size.
struct DmlGraphNodeCreateInfo
{
uint32_t nodeCount;
uint32_t nodeCount = 0;
std::vector<std::unique_ptr<AbstractOperatorDesc>> nodesAsOperatorDesc;
std::vector<Microsoft::WRL::ComPtr<IDMLOperator>> nodesAsIDMLOperator;
std::vector<DML_INPUT_GRAPH_EDGE_DESC> inputEdges;