aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeresa Charlin <teresa.charlinreyes@arm.com>2020-08-16 13:35:24 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2020-08-16 13:08:22 +0000
commit1910a186e3d739a576a2a9ac2af8e8c245203e33 (patch)
tree454ee88330de8034de47e9b1b86b61e4a15ed573
parent4bd9a745df49bdf11e03f932af6eca6b61ddb0a1 (diff)
downloadandroid-nn-driver-1910a186e3d739a576a2a9ac2af8e8c245203e33.tar.gz
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
-rw-r--r--ConversionUtils_1_2.hpp7
1 files 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<HalPolicy>(operation, 0, *layer, model, data, nullptr, validateFunc);
}