mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-22 22:01:08 +00:00
Fix SegFault (#22499)
Fix SegFault reported by https://github.com/microsoft/onnxruntime/issues/22493.
This commit is contained in:
parent
abad69b322
commit
60da4a2ccd
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ bool PreShapeNodeElimination::SatisfyCondition(const Graph& graph, const Node& n
|
|||
|
||||
for (const Node* next_node : output_nodes) {
|
||||
// Check if the next node is not of type "Shape"
|
||||
if (!graph_utils::IsSupportedOptypeVersionAndDomain(*next_node, "Shape", {13, 15, 19}, kOnnxDomain)) {
|
||||
if (!next_node || !graph_utils::IsSupportedOptypeVersionAndDomain(*next_node, "Shape", {13, 15, 19}, kOnnxDomain)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue