Release 18.08
[platform/upstream/armnn.git] / src / armnn / layers / ResizeBilinearLayer.hpp
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
4 //
5 #pragma once
6
7 #include "LayerWithParameters.hpp"
8
9 namespace armnn
10 {
11
12 class ResizeBilinearLayer : public LayerWithParameters<ResizeBilinearDescriptor>
13 {
14 public:
15     virtual std::unique_ptr<IWorkload>
16         CreateWorkload(const Graph& graph, const IWorkloadFactory& factory) const override;
17
18     ResizeBilinearLayer* Clone(Graph& graph) const override;
19
20     void ValidateTensorShapesFromInputs() override;
21     std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
22
23 protected:
24     ResizeBilinearLayer(const ResizeBilinearDescriptor& param, const char* name);
25     ~ResizeBilinearLayer() = default;
26 };
27
28 } // namespace