diff options
author | jimfly01 <jim.flynn@arm.com> | 2019-01-28 12:51:53 +0000 |
---|---|---|
committer | jimfly01 <jim.flynn@arm.com> | 2019-01-29 10:37:47 +0000 |
commit | d161ba0bc83fa14f7aea4c629ca3e6ea04a2dc34 (patch) | |
tree | 909d956ede3aaaf2812d4141a4742c4e2c936122 /src/armnn/layers/Convolution2dLayer.cpp | |
parent | c6a41ffa25d468a69465e1a7b22b280b029f65a2 (diff) | |
download | armnn-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/Convolution2dLayer.cpp')
-rw-r--r-- | src/armnn/layers/Convolution2dLayer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/armnn/layers/Convolution2dLayer.cpp b/src/armnn/layers/Convolution2dLayer.cpp index 86eb71d61a..cb90f81e23 100644 --- a/src/armnn/layers/Convolution2dLayer.cpp +++ b/src/armnn/layers/Convolution2dLayer.cpp @@ -112,14 +112,15 @@ Layer::ConstantTensors Convolution2dLayer::GetConstantTensorsByRef() void Convolution2dLayer::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.VisitConvolution2dLayer(this, GetParameters(), dummy, dummy, GetName()); + visitor.VisitConvolution2dLayer(this, GetParameters(), weightsTensor, biasTensor, GetName()); } else { - visitor.VisitConvolution2dLayer(this, GetParameters(), dummy, GetName()); + visitor.VisitConvolution2dLayer(this, GetParameters(), weightsTensor, GetName()); } } |