From 549b9600a6eaf0727fa084465a75f173edf8f381 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 24 May 2022 11:32:07 +0100 Subject: Update 22.05 Doxygen Docs after updates to main Readme Signed-off-by: Nikhil Raj Change-Id: I56711772406a41ff81fa136a5fb6c59c9b9cf504 --- 22.05/_input_layer_8cpp_source.xhtml | 137 +++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 22.05/_input_layer_8cpp_source.xhtml (limited to '22.05/_input_layer_8cpp_source.xhtml') diff --git a/22.05/_input_layer_8cpp_source.xhtml b/22.05/_input_layer_8cpp_source.xhtml new file mode 100644 index 0000000000..87cfc4a141 --- /dev/null +++ b/22.05/_input_layer_8cpp_source.xhtml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/layers/InputLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
InputLayer.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include "InputLayer.hpp"
6 
7 #include "LayerCloneBase.hpp"
8 
11 
12 namespace armnn
13 {
14 
16  : BindableLayer(0, 1, LayerType::Input, name, id)
17 {
18 }
19 
20 std::unique_ptr<IWorkload> InputLayer::CreateWorkload(const IWorkloadFactory& factory) const
21 {
22  IgnoreUnused(factory);
23  return nullptr;
24 }
25 
27 {
28  return CloneBase<InputLayer>(graph, GetBindingId(), GetName());
29 }
30 
32 {
33  //The input layer should already have it's inputs set during graph building phase in the driver/parser.
34  ConditionalThrow<LayerValidationException>(GetOutputHandler(0).IsTensorInfoSet(),
35  "InputLayer should already have the TensorInfo set.");
36 }
37 
39 void InputLayer::Accept(ILayerVisitor& visitor) const
40 {
41  visitor.VisitInputLayer(this, this->GetBindingId(), GetName());
42 }
44 
45 } // namespace
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Input type.
Definition: InputLayer.cpp:20
+
#define ARMNN_NO_DEPRECATE_WARN_BEGIN
Definition: Deprecated.hpp:33
+ +
LayerBindingId GetBindingId() const
Definition: Layer.hpp:463
+ + +
Copyright (c) 2021 ARM Limited and Contributors.
+
void IgnoreUnused(Ts &&...)
+
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:290
+
#define ARMNN_NO_DEPRECATE_WARN_END
Definition: Deprecated.hpp:34
+
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of InputLayer.
Definition: InputLayer.cpp:31
+ +
bool IsTensorInfoSet() const
Returns true if SetTensorInfo() has been called at least once on this.
+ +
InputLayer(LayerBindingId id, const char *name)
Constructor to create an InputLayer.
Definition: InputLayer.cpp:15
+
ARMNN_NO_DEPRECATE_WARN_BEGIN void Accept(ILayerVisitor &visitor) const override
Definition: InputLayer.cpp:39
+
const OutputHandler & GetOutputHandler(unsigned int i=0) const
Definition: Layer.hpp:230
+
A layer user-provided data can be bound to (e.g. inputs, outputs).
Definition: InputLayer.hpp:13
+ +
InputLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
Definition: InputLayer.cpp:26
+
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:317
+ + +
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below...
Definition: Types.hpp:467
+
+
+ + + + -- cgit v1.2.1