aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/FullyConnectedLayer.cpp
diff options
context:
space:
mode:
authorjimfly01 <jim.flynn@arm.com>2019-01-28 12:51:53 +0000
committerjimfly01 <jim.flynn@arm.com>2019-01-29 10:37:47 +0000
commitd161ba0bc83fa14f7aea4c629ca3e6ea04a2dc34 (patch)
tree909d956ede3aaaf2812d4141a4742c4e2c936122 /src/armnn/layers/FullyConnectedLayer.cpp
parentc6a41ffa25d468a69465e1a7b22b280b029f65a2 (diff)
downloadarmnn-d161ba0bc83fa14f7aea4c629ca3e6ea04a2dc34.tar.gz
IVGCVSW-2569 Add implementation of ConstTensor Accept functions
* Create the required ConstTensors and pass them to the appropriate visit method. Back fill of dummies added during IVGCVSW-2547 * Moved the VisitDetectionPostProcessLayer function declaration in ILayerVistor to its correct location after the VisitDepthwiseConvolution2dLayer functions. Change-Id: I0bd2f8c3603cbdb933b1216ead96dd8273eb5013
Diffstat (limited to 'src/armnn/layers/FullyConnectedLayer.cpp')
-rw-r--r--src/armnn/layers/FullyConnectedLayer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/armnn/layers/FullyConnectedLayer.cpp b/src/armnn/layers/FullyConnectedLayer.cpp
index 977c2769df..783482e013 100644
--- a/src/armnn/layers/FullyConnectedLayer.cpp
+++ b/src/armnn/layers/FullyConnectedLayer.cpp
@@ -88,14 +88,15 @@ Layer::ConstantTensors FullyConnectedLayer::GetConstantTensorsByRef()
void FullyConnectedLayer::Accept(ILayerVisitor& visitor) const
{
- ConstTensor dummy;
+ ConstTensor weightsTensor(m_Weight->GetTensorInfo(), m_Weight->GetTensor<void*>()) ;
+ ConstTensor biasTensor(m_Bias->GetTensorInfo(), m_Bias->GetConstTensor<void*>());
if (GetParameters().m_BiasEnabled)
{
- visitor.VisitFullyConnectedLayer(this, GetParameters(), dummy, dummy, GetName());
+ visitor.VisitFullyConnectedLayer(this, GetParameters(), weightsTensor, biasTensor, GetName());
}
else
{
- visitor.VisitFullyConnectedLayer(this, GetParameters(), dummy, GetName());
+ visitor.VisitFullyConnectedLayer(this, GetParameters(), weightsTensor, GetName());
}
}