diff options
author | FinnWilliamsArm <Finn.Williams@Arm.com> | 2020-01-08 14:57:47 +0000 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2020-01-15 15:53:55 +0000 |
commit | 20e8916bee2a9ddb84ee61daf56fefd9c624cfbc (patch) | |
tree | 29c31402ae35cf844d29eccf578b54ffd29cb0c4 /ConversionUtils.hpp | |
parent | 3500e64f69bd48bfd13b8b2266e4f6c2eb9da838 (diff) | |
download | android-nn-driver-20e8916bee2a9ddb84ee61daf56fefd9c624cfbc.tar.gz |
IVGCVSW-4315 Fix Fully Connected infer output shape bug
Change-Id: If4fd1abdedf7de2046435d418fb1ee95ceb73419
Signed-off-by: FinnWilliamsArm <Finn.Williams@Arm.com>
Diffstat (limited to 'ConversionUtils.hpp')
-rw-r--r-- | ConversionUtils.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp index afaf1af7..acf215d5 100644 --- a/ConversionUtils.hpp +++ b/ConversionUtils.hpp @@ -2336,6 +2336,14 @@ bool ConvertFullyConnected(const Operation& operation, const Model& model, Conve desc.m_TransposeWeightMatrix = true; desc.m_BiasEnabled = true; + if (!VerifyFullyConnectedShapes(reshapedInfo.GetShape(), + weights.GetInfo().GetShape(), + outputInfo.GetShape(), + desc.m_TransposeWeightMatrix)) + { + return Fail("%s: Expected outputShape does not match actual outputShape", __func__); + } + bool isSupported = false; FORWARD_LAYER_SUPPORT_FUNC(__func__, IsFullyConnectedSupported, |