mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Extend workaround with input name matching in DML fused graph kernel (#3918)
This commit is contained in:
parent
0f82b42fed
commit
f170f31e1d
1 changed files with 8 additions and 0 deletions
|
|
@ -205,6 +205,14 @@ namespace Dml::GraphDescBuilder
|
|||
if (arg->Exists())
|
||||
{
|
||||
auto iter = nameToFusedNodeInputIndex.find(arg->Name());
|
||||
|
||||
// The graph input could be missing the suffix, so try to match without it.
|
||||
// This is part of a temporary workaround; see comments in GetFusedNodeArgNameMatchingGraph.
|
||||
if (iter == nameToFusedNodeInputIndex.end())
|
||||
{
|
||||
iter = nameToFusedNodeInputIndex.find(GetFusedNodeArgNameMatchingGraph(arg->Name()));
|
||||
}
|
||||
|
||||
if (iter != nameToFusedNodeInputIndex.end())
|
||||
{
|
||||
// This is a graph input
|
||||
|
|
|
|||
Loading…
Reference in a new issue