Extend workaround with input name matching in DML fused graph kernel (#3918)

This commit is contained in:
Jeff Bloomfield 2020-05-12 14:04:09 -07:00 committed by GitHub
parent 0f82b42fed
commit f170f31e1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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