diff options
author | jimfly01 <jim.flynn@arm.com> | 2019-02-05 09:20:11 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2019-02-07 16:00:12 +0000 |
commit | aebf2e7871997378d33fa99f7cab6322be9b726f (patch) | |
tree | aef3f6fd05aafbee10100de85ec2e766d4f92ef7 /src/armnn/layers/DepthwiseConvolution2dLayer.cpp | |
parent | 857aa45407df9dbe99a11d03a4be2b20bd0110ae (diff) | |
download | armnn-aebf2e7871997378d33fa99f7cab6322be9b726f.tar.gz |
IVGCVSW-2553 Add Unit Test for ConstTensor layer visitors
Change-Id: I20a67135e4af7aa1f28f5000d73122f4e5e3acd5
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/armnn/layers/DepthwiseConvolution2dLayer.cpp')
-rw-r--r-- | src/armnn/layers/DepthwiseConvolution2dLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/layers/DepthwiseConvolution2dLayer.cpp b/src/armnn/layers/DepthwiseConvolution2dLayer.cpp index dca13f263c..a17673fc1e 100644 --- a/src/armnn/layers/DepthwiseConvolution2dLayer.cpp +++ b/src/armnn/layers/DepthwiseConvolution2dLayer.cpp @@ -122,10 +122,10 @@ Layer::ConstantTensors DepthwiseConvolution2dLayer::GetConstantTensorsByRef() void DepthwiseConvolution2dLayer::Accept(ILayerVisitor& visitor) const { - ConstTensor weightsTensor(m_Weight->GetTensorInfo(), m_Weight->GetTensor<void*>()) ; - ConstTensor biasTensor(m_Bias->GetTensorInfo(), m_Bias->GetConstTensor<void*>()); + ConstTensor weightsTensor(m_Weight->GetTensorInfo(), m_Weight->Map(true)) ; if (GetParameters().m_BiasEnabled) { + ConstTensor biasTensor(m_Bias->GetTensorInfo(), m_Bias->Map(true)); visitor.VisitDepthwiseConvolution2dLayer(this, GetParameters(), weightsTensor, biasTensor, GetName()); } else |