IVGCVSW-5182 Bug fix for Comparison layer introduced by dynamic tensors

* Addresses this error: Tried to connect an output slot to an input slot,
   but the latter already has a connection

Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Id011f4b42453b66bca2a388b8081151d74d006c3
diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp
index 0f47ad3..210caa1 100644
--- a/ConversionUtils_1_2.hpp
+++ b/ConversionUtils_1_2.hpp
@@ -177,8 +177,11 @@
         return false;
     }
 
-    input0.Connect(layer->GetInputSlot(0));
-    input1.Connect(layer->GetInputSlot(1));
+    if(IsDynamicTensor(outputInfo))
+    {
+        input0.Connect(layer->GetInputSlot(0));
+        input1.Connect(layer->GetInputSlot(1));
+    }
 
     return SetupAndTrackLayerOutputSlot<HalPolicy>(operation, 0, *layer, model, data, nullptr, validateFunc);
 }