diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-12-10 21:12:59 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2019-12-31 10:02:58 +0000 |
commit | 94a88d2b21d9ca3f42dc3435695be31b5591230b (patch) | |
tree | edf9381fa095561706353773c155a2c922a50dc8 /src/armnn/layers/ConstantLayer.cpp | |
parent | ff3c426ffd799abd66e4280da559384d86702721 (diff) | |
download | armnn-94a88d2b21d9ca3f42dc3435695be31b5591230b.tar.gz |
IVGCVSW-4246 Clean build Layers with -Wextra
Change-Id: I649cd2304fb0040164763d31a12fc77c6c3bed87
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/armnn/layers/ConstantLayer.cpp')
-rw-r--r-- | src/armnn/layers/ConstantLayer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/armnn/layers/ConstantLayer.cpp b/src/armnn/layers/ConstantLayer.cpp index 31e1549e0e..136616c204 100644 --- a/src/armnn/layers/ConstantLayer.cpp +++ b/src/armnn/layers/ConstantLayer.cpp @@ -18,12 +18,11 @@ ConstantLayer::ConstantLayer(const char* name) { } -std::unique_ptr<IWorkload> ConstantLayer::CreateWorkload(const Graph& graph, - const IWorkloadFactory& factory) const +std::unique_ptr<IWorkload> ConstantLayer::CreateWorkload(const IWorkloadFactory& factory) const { ConstantQueueDescriptor descriptor; descriptor.m_LayerOutput = m_LayerOutput.get(); - return factory.CreateConstant(descriptor, PrepInfoAndDesc(descriptor, graph)); + return factory.CreateConstant(descriptor, PrepInfoAndDesc(descriptor)); } ConstantLayer* ConstantLayer::Clone(Graph& graph) const @@ -38,7 +37,7 @@ ConstantLayer* ConstantLayer::Clone(Graph& graph) const std::vector<TensorShape> ConstantLayer::InferOutputShapes(const std::vector<TensorShape>& inputShapes) const { - return std::vector<TensorShape>({ m_LayerOutput->GetTensorInfo().GetShape() }); + return std::vector<TensorShape>({ inputShapes[0] }); } void ConstantLayer::ValidateTensorShapesFromInputs() |