aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/layers/DepthwiseConvolution2dLayer.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/DepthwiseConvolution2dLayer.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/DepthwiseConvolution2dLayer.cpp')
-rw-r--r--src/armnn/layers/DepthwiseConvolution2dLayer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/armnn/layers/DepthwiseConvolution2dLayer.cpp b/src/armnn/layers/DepthwiseConvolution2dLayer.cpp
index b2d981445d..dca13f263c 100644
--- a/src/armnn/layers/DepthwiseConvolution2dLayer.cpp
+++ b/src/armnn/layers/DepthwiseConvolution2dLayer.cpp
@@ -122,14 +122,15 @@ Layer::ConstantTensors DepthwiseConvolution2dLayer::GetConstantTensorsByRef()
void DepthwiseConvolution2dLayer::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.VisitDepthwiseConvolution2dLayer(this, GetParameters(), dummy, dummy, GetName());
+ visitor.VisitDepthwiseConvolution2dLayer(this, GetParameters(), weightsTensor, biasTensor, GetName());
}
else
{
- visitor.VisitDepthwiseConvolution2dLayer(this, GetParameters(), dummy, GetName());
+ visitor.VisitDepthwiseConvolution2dLayer(this, GetParameters(), weightsTensor, GetName());
}
}