From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/_stand_in_layer_8cpp_source.xhtml | 136 ++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 22.02/_stand_in_layer_8cpp_source.xhtml (limited to '22.02/_stand_in_layer_8cpp_source.xhtml') diff --git a/22.02/_stand_in_layer_8cpp_source.xhtml b/22.02/_stand_in_layer_8cpp_source.xhtml new file mode 100644 index 0000000000..869b0c2788 --- /dev/null +++ b/22.02/_stand_in_layer_8cpp_source.xhtml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/layers/StandInLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
StandInLayer.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd and Contributors. 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 
40  // Cannot validate this layer since no implementation details can be known by the framework
41  // so do nothing here.
42 }
43 
45 void StandInLayer::Accept(ILayerVisitor& visitor) const
46 {
47  visitor.VisitStandInLayer(this, GetParameters(), GetName());
48 }
50 } // 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.).
+
#define ARMNN_NO_DEPRECATE_WARN_BEGIN
Definition: Deprecated.hpp:33
+ + +
This layer represents an unknown operation in the input graph.
+
Copyright (c) 2021 ARM Limited and Contributors.
+
const StandInDescriptor & GetParameters() const override
+
void IgnoreUnused(Ts &&...)
+
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Empty implementation explictly does NOT create a workload.
+
#define ARMNN_NO_DEPRECATE_WARN_END
Definition: Deprecated.hpp:34
+
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.
+ + +
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+
ARMNN_NO_DEPRECATE_WARN_BEGIN void Accept(ILayerVisitor &visitor) const override
Accepts a visitor object and calls VisitStandInLayer() method.
+
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:316
+ +
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Empty implementation that throws Exception if called.
+ +
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below...
Definition: Types.hpp:458
+
+
+ + + + -- cgit v1.2.1