From 609e974ba9b82a51789051ddc5f336c0b81df6e0 Mon Sep 17 00:00:00 2001
From: NAUD Maxence <maxence.naud@cea.fr>
Date: Mon, 25 Nov 2024 13:54:00 +0000
Subject: [PATCH] Add possibility for optional inputs to be associated without
 having any element

---
 src/operator/Resize.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/operator/Resize.cpp b/src/operator/Resize.cpp
index a56370ac7..252f55a6a 100644
--- a/src/operator/Resize.cpp
+++ b/src/operator/Resize.cpp
@@ -51,7 +51,8 @@ bool Resize_Op::forwardDims(bool allowDataDependency) {
         return false;
     }
 
-    if (!inputsAssociated()) {
+    // Some optional input may be linked but undefined because of ONNX import
+    if (!inputsAssociated(false)) {
         return false;
     }
 
-- 
GitLab