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 --- 20.02/_stand_in_layer_8cpp_source.xhtml | 136 ++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 20.02/_stand_in_layer_8cpp_source.xhtml (limited to '20.02/_stand_in_layer_8cpp_source.xhtml') diff --git a/20.02/_stand_in_layer_8cpp_source.xhtml b/20.02/_stand_in_layer_8cpp_source.xhtml new file mode 100644 index 0000000000..72d6ced146 --- /dev/null +++ b/20.02/_stand_in_layer_8cpp_source.xhtml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/layers/StandInLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
StandInLayer.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "StandInLayer.hpp"
7 #include "LayerCloneBase.hpp"
8 
9 namespace armnn
10 {
11 
12 StandInLayer::StandInLayer(const StandInDescriptor& param, const char* name)
13  : LayerWithParameters(param.m_NumInputs, param.m_NumOutputs, LayerType::StandIn, param, name)
14 {
15 }
16 
17 std::unique_ptr<IWorkload> StandInLayer::CreateWorkload(const IWorkloadFactory& factory) const
18 {
19  IgnoreUnused(factory);
20  // This throws in the event that it's called. We would expect that any backend that
21  // "claims" to support the StandInLayer type would actually substitute it with a PrecompiledLayer
22  // during graph optimization. There is no interface on the IWorkloadFactory to create a StandInWorkload.
23  throw Exception("Stand in layer does not support creating workloads");
24 }
25 
27 {
28  return CloneBase<StandInLayer>(graph, m_Param, GetName());
29 }
30 
31 std::vector<TensorShape> StandInLayer::InferOutputShapes(const std::vector<TensorShape>& inputShapes) const
32 {
33  IgnoreUnused(inputShapes);
34  throw Exception("Stand in layer does not support infering output shapes");
35 }
36 
38 {
39  // Cannot validate this layer since no implementation details can be known by the framework
40  // so do nothing here.
41 }
42 
43 void StandInLayer::Accept(ILayerVisitor& visitor) const
44 {
45  visitor.VisitStandInLayer(this, GetParameters(), GetName());
46 }
47 } // namespace armnn
StandInLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
+
StandInDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
+
const StandInDescriptor & GetParameters() const
+ + +
This layer represents an unknown operation in the input graph.
+
Copyright (c) 2020 ARM Limited.
+
void IgnoreUnused(Ts &&...)
+
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Empty implementation explictly does NOT create a workload.
+
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) Does nothing since cannot validate any properties of this layer...
+
A StandInDescriptor for the StandIn layer.
+ +
void Accept(ILayerVisitor &visitor) const override
Accepts a visitor object and calls VisitStandInLayer() method.
+
virtual void VisitStandInLayer(const IConnectableLayer *layer, const StandInDescriptor &standInDescriptor, const char *name=nullptr)=0
Function a StandInLayer should call back to when its Accept(ILaterVisitor&) function is invoked...
+ +
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+ +
StandInLayer(const StandInDescriptor &param, const char *name)
Constructor to create a StandInLayer.
+
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:305
+ +
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Empty implementation that throws Exception if called.
+ + +
+
+ + + + -- cgit v1.2.1