Wrong variable 'm_ProjectionWeights' is used to check if the pointer is valid from IVGCVSW-4449
* Github issue: https://github.com/ARM-software/armnn/issues/639
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com>
Change-Id: If93f2cae101814652664c671417946b94a9f749c
diff --git a/src/armnn/Network.cpp b/src/armnn/Network.cpp
index 1f4e727..549222b 100644
--- a/src/armnn/Network.cpp
+++ b/src/armnn/Network.cpp
@@ -2637,7 +2637,7 @@
std::make_shared<ScopedTensorHandle>(*(params.m_ProjectionWeights));
// Projection bias is optional even if projection is enabled
- if(params.m_ProjectionWeights != nullptr)
+ if(params.m_ProjectionBias != nullptr)
{
layer->m_ProjectionParameters.m_ProjectionBias =
std::make_shared<ScopedTensorHandle>(*(params.m_ProjectionBias));