From b20d1d4888c270d4d57a0bdcc011ded89a2f5b38 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Mon, 9 Aug 2021 15:33:41 +0100 Subject: IVGCVSW-6119 ConstTensorsAsInput: FullyConnected Bug Fix * Updated FullyConnected layer member variables when cloning as some backends still require them. * Added SetConstant call when using deprecated AddFullyConnectedLayer method to ensure backwards compatibility. * Added SetConstant to SimpleSample to ensure it runs on all backends. Signed-off-by: Matthew Sloyan Change-Id: Ie7b4e4b868f23f8fcf9c41ffd12e2ea9ea53afca --- src/armnn/BackendHelper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/armnn/BackendHelper.cpp') diff --git a/src/armnn/BackendHelper.cpp b/src/armnn/BackendHelper.cpp index 9ab30f8fb2..594d76916c 100644 --- a/src/armnn/BackendHelper.cpp +++ b/src/armnn/BackendHelper.cpp @@ -407,12 +407,18 @@ bool LayerSupportHandle::IsFullyConnectedSupported(const TensorInfo& input, { if(!weights.IsConstant()) { + reasonIfUnsupported.value() = + "This backend might not support non constant weights. " + "If weights are constant make sure to set IsConstant when creating TensorInfo"; return false; } if(descriptor.m_BiasEnabled) { if(!biases.IsConstant()) { + reasonIfUnsupported.value() = + "This backend might not support non constant bias. " + "If bias are constant make sure to set IsConstant when creating TensorInfo"; return false; } } -- cgit v1.2.1