ArmNN  NotReleased
InputLayer.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 
7 #include <Layer.hpp>
8 
9 namespace armnn
10 {
11 
13 class InputLayer : public BindableLayer
14 {
15 public:
20  virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
21 
24  InputLayer* Clone(Graph& graph) const override;
25 
28  void ValidateTensorShapesFromInputs() override;
29 
30  void Accept(ILayerVisitor& visitor) const override;
31 
32 protected:
36  InputLayer(LayerBindingId id, const char* name);
37 
39  ~InputLayer() = default;
40 };
41 
42 } // namespace
A layer user-provided data can be bound to (e.g. inputs, outputs).
Definition: InputLayer.hpp:13
void ValidateTensorShapesFromInputs() override
Definition: InputLayer.cpp:31
~InputLayer()=default
Default destructor.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Definition: InputLayer.cpp:20
void Accept(ILayerVisitor &visitor) const override
Definition: InputLayer.cpp:38
InputLayer(LayerBindingId id, const char *name)
Definition: InputLayer.cpp:15
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:168
InputLayer * Clone(Graph &graph) const override
Definition: InputLayer.cpp:26