mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-10 17:37:14 +00:00
[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:
parent
41d2ff622c
commit
5ed5f13920
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue