ArmNN  NotReleased
DepthToSpaceLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 namespace armnn
11 {
12 
14 class DepthToSpaceLayer : public LayerWithParameters<DepthToSpaceDescriptor>
15 {
16 public:
21  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
22 
25  DepthToSpaceLayer* Clone(Graph& graph) const override;
26 
31  std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
32 
35  void ValidateTensorShapesFromInputs() override;
36 
37  void Accept(ILayerVisitor& visitor) const override;
38 
39 protected:
43  DepthToSpaceLayer(const DepthToSpaceDescriptor& param, const char* name);
44 
46  ~DepthToSpaceLayer() = default;
47 };
48 
49 } // namespace armnn
void ValidateTensorShapesFromInputs() override
This layer represents a DepthToSpace operation.
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
void Accept(ILayerVisitor &visitor) const override
DepthToSpaceLayer * Clone(Graph &graph) const override
~DepthToSpaceLayer()=default
Default destructor.
DepthToSpaceLayer(const DepthToSpaceDescriptor &param, const char *name)
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override