SWDEV-325545 - hipGraphGetEdges when both from/to are null

Change-Id: Id69d87537a8a7fb7df447cee586137ff1342ce26


[ROCm/clr commit: f2254e0c34]
이 커밋은 다음에 포함됨:
Ajay 작성하고 Ajay GunaShekar가 2022-03-03 13:23:48 -05:00를 커밋함
1 부모 952c9c89e7
커밋 2adc7d9113
1 파일이 변경됨
+2 -1
+2 -1
파일 보기
@@ -1292,7 +1292,8 @@ hipError_t hipGraphGetEdges(hipGraph_t graph, hipGraphNode_t* from, hipGraphNode
size_t* numEdges) {
HIP_INIT_API(hipGraphGetEdges, graph, from, to, numEdges);
if (graph == nullptr || numEdges == nullptr ||
from == nullptr || to == nullptr) {
(from == nullptr && to != nullptr) ||
(to == nullptr && from != nullptr)) {
HIP_RETURN(hipErrorInvalidValue);
}
const std::vector<std::pair<Node, Node>> edges = graph->GetEdges();