SWDEV-498077 - Check topoOrder_ before accessing it.
Change-Id: I10e3c24ca8dc1009b8ac8ac27b3e9a6296f9a7ee
此提交包含在:
1 父節點
1a710dabcf
當前提交
d997f78be4
1 file changed
+1
-1
@@ -838,7 +838,7 @@ hipError_t GraphExec::Run(hipStream_t graph_launch_stream) {
|
||||
|
||||
// If this is a repeat launch, make sure corresponding MemFreeNode exists for a MemAlloc node
|
||||
if (repeatLaunch_ == true) {
|
||||
if (topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
|
||||
if (!topoOrder_.empty() && topoOrder_[0]->GetParentGraph()->GetMemAllocNodeCount() > 0) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
封鎖使用者