Skip to content

Commit

Permalink
[DML EP] Add missing member initializer DmlGraphNodeCreateInfo::nodeC…
Browse files Browse the repository at this point in the history
…ount (#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`.
  • Loading branch information
kazssym authored Sep 15, 2023
1 parent 41d2ff6 commit 5ed5f13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ed5f13

Please sign in to comment.