SWDEV-408701 - Avoid adding duplicates when no node is captured in cross stream
Change-Id: Iccbddaf9db73238aa938f8b3e8ec410f4a86d524
This commit is contained in:
committed by
Anusha Godavarthy Surya
parent
2535fac296
commit
c7e4e9c2f4
@@ -336,7 +336,10 @@ namespace hip {
|
|||||||
lastCapturedNodes_.clear();
|
lastCapturedNodes_.clear();
|
||||||
}
|
}
|
||||||
for (auto node : graphNodes) {
|
for (auto node : graphNodes) {
|
||||||
lastCapturedNodes_.push_back(node);
|
if (std::find(lastCapturedNodes_.begin(), lastCapturedNodes_.end(), node) ==
|
||||||
|
lastCapturedNodes_.end()) {
|
||||||
|
lastCapturedNodes_.push_back(node);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Set graph that is being captured
|
/// Set graph that is being captured
|
||||||
|
|||||||
Reference in New Issue
Block a user