From 1910a186e3d739a576a2a9ac2af8e8c245203e33 Mon Sep 17 00:00:00 2001 From: Teresa Charlin Date: Sun, 16 Aug 2020 13:35:24 +0100 Subject: 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 Change-Id: Id011f4b42453b66bca2a388b8081151d74d006c3 --- ConversionUtils_1_2.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp index 0f47ad31..210caa1b 100644 --- a/ConversionUtils_1_2.hpp +++ b/ConversionUtils_1_2.hpp @@ -177,8 +177,11 @@ bool ConvertComparison_1_2(const HalOperation& operation, 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(operation, 0, *layer, model, data, nullptr, validateFunc); } -- cgit v1.2.1