From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...st_input_output_layer_visitor_8hpp_source.xhtml | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 20.02/_test_input_output_layer_visitor_8hpp_source.xhtml (limited to '20.02/_test_input_output_layer_visitor_8hpp_source.xhtml') diff --git a/20.02/_test_input_output_layer_visitor_8hpp_source.xhtml b/20.02/_test_input_output_layer_visitor_8hpp_source.xhtml new file mode 100644 index 0000000000..c420a4fd10 --- /dev/null +++ b/20.02/_test_input_output_layer_visitor_8hpp_source.xhtml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/test/TestInputOutputLayerVisitor.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TestInputOutputLayerVisitor.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 "TestLayerVisitor.hpp"
8 #include <boost/test/unit_test.hpp>
9 
10 namespace armnn
11 {
12 
14 {
15  BOOST_CHECK_EQUAL(visitorId, id);
16 }
17 
18 // Concrete TestLayerVisitor subclasses for layers taking LayerBindingId argument with overridden VisitLayer methods
20 {
21 private:
22  LayerBindingId visitorId;
23 
24 public:
25  explicit TestInputLayerVisitor(LayerBindingId id, const char* name = nullptr)
26  : TestLayerVisitor(name)
27  , visitorId(id)
28  {};
29 
31  LayerBindingId id,
32  const char* name = nullptr) override
33  {
34  CheckLayerPointer(layer);
35  CheckLayerBindingId(visitorId, id);
36  CheckLayerName(name);
37  };
38 };
39 
41 {
42 private:
43  LayerBindingId visitorId;
44 
45 public:
46  explicit TestOutputLayerVisitor(LayerBindingId id, const char* name = nullptr)
47  : TestLayerVisitor(name)
48  , visitorId(id)
49  {};
50 
52  LayerBindingId id,
53  const char* name = nullptr) override
54  {
55  CheckLayerPointer(layer);
56  CheckLayerBindingId(visitorId, id);
57  CheckLayerName(name);
58  };
59 };
60 
61 } //namespace armnn
+
void CheckLayerName(const char *name)
+ +
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:61
+ +
void CheckLayerPointer(const IConnectableLayer *layer)
+ +
Copyright (c) 2020 ARM Limited.
+
TestInputLayerVisitor(LayerBindingId id, const char *name=nullptr)
+
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:171
+
void VisitOutputLayer(const IConnectableLayer *layer, LayerBindingId id, const char *name=nullptr) override
Function an output layer should call back to when its Accept(ILayerVisitor&) function is invoked...
+
TestOutputLayerVisitor(LayerBindingId id, const char *name=nullptr)
+
void CheckLayerBindingId(LayerBindingId visitorId, LayerBindingId id)
+
void VisitInputLayer(const IConnectableLayer *layer, LayerBindingId id, const char *name=nullptr) override
Function that an InputLayer should call back to when its Accept(ILayerVisitor&) function is invoked...
+
+
+ + + + -- cgit v1.2.1