SWDEV-425640 - An instantiated graphExec should retain a copy of every reference in the source graph
Change-Id: Idf6b224449ca642af2860b33dc739f51a6248e4c
[ROCm/clr commit: 3fdd46ae59]
This commit is contained in:
1 parent
9caac12074
commit
423fd58c3f
2 files changed
+4
-6
No files matched your search
@@ -285,6 +285,10 @@ Graph* Graph::clone(std::unordered_map<Node, Node>& clonedNodes) const {
|
||||
}
|
||||
clonedNodes[node]->SetDependencies(clonedDependencies);
|
||||
}
|
||||
for (auto userObj : graphUserObj_) {
|
||||
userObj->retain();
|
||||
newGraph->graphUserObj_.insert(userObj);
|
||||
}
|
||||
return newGraph;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user