ArmNN  NotReleased
StridedSliceLayer.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
8 
9 namespace armnn
10 {
11 
13 class StridedSliceLayer : public LayerWithParameters<StridedSliceDescriptor>
14 {
15 public:
20  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
21 
24  StridedSliceLayer* Clone(Graph& graph) const override;
25 
30  std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override;
31 
34  void ValidateTensorShapesFromInputs() override;
35 
36  void Accept(ILayerVisitor& visitor) const override;
37 
38 protected:
42  StridedSliceLayer(const StridedSliceDescriptor& param, const char* name);
43 
45  ~StridedSliceLayer() = default;
46 };
47 
48 } // namespace
void Accept(ILayerVisitor &visitor) const override
StridedSliceLayer * Clone(Graph &graph) const override
~StridedSliceLayer()=default
Default destructor.
void ValidateTensorShapesFromInputs() override
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
This layer represents a strided slice operation.
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
StridedSliceLayer(const StridedSliceDescriptor &param, const char *name)
A StridedSliceDescriptor for the StridedSliceLayer.