GraphPartitioner.cpp: fixed Merge function to handle duplicated partitions. (#9929)

Co-authored-by: Achira <achiras@microsoft.com>
This commit is contained in:
Jeff Bloomfield 2022-01-10 12:01:08 -08:00 committed by GitHub
parent 5cd57bb726
commit 32ee379f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ namespace Dml
for (GraphPartition* partitionToMerge : partitionsToMerge)
{
if (partitionToMerge == this)
if (partitionToMerge->GetRootMergedPartition() == this)
{
continue;
}