2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
7 #include "LayerWithParameters.hpp"
12 class ScopedCpuTensorHandle;
14 class Convolution2dLayer : public LayerWithParameters<Convolution2dDescriptor>
17 std::unique_ptr<ScopedCpuTensorHandle> m_Weight;
18 std::unique_ptr<ScopedCpuTensorHandle> m_Bias;
20 virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph,
21 const IWorkloadFactory& factory) const override;
23 Convolution2dLayer* Clone(Graph& graph) const override;
25 void ValidateTensorShapesFromInputs() override;
27 std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
30 Convolution2dLayer(const Convolution2dDescriptor& param, const char* name);
31 ~Convolution2dLayer() = default;
33 ConstantTensors GetConstantTensorsByRef() override;