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/_pre_compiled_layer_8cpp_source.xhtml | 142 ++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 20.02/_pre_compiled_layer_8cpp_source.xhtml (limited to '20.02/_pre_compiled_layer_8cpp_source.xhtml') diff --git a/20.02/_pre_compiled_layer_8cpp_source.xhtml b/20.02/_pre_compiled_layer_8cpp_source.xhtml new file mode 100644 index 0000000000..ef52ffd2fa --- /dev/null +++ b/20.02/_pre_compiled_layer_8cpp_source.xhtml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/layers/PreCompiledLayer.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
PreCompiledLayer.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "PreCompiledLayer.hpp"
7 
8 #include "LayerCloneBase.hpp"
9 
11 
12 #include <armnn/TypesUtils.hpp>
13 
14 namespace armnn
15 {
16 
18  : LayerWithParameters(param.m_NumInputSlots, param.m_NumOutputSlots, LayerType::PreCompiled, param, name)
19 {}
20 
22 {}
23 
25 {
26  PreCompiledLayer* clone = CloneBase<PreCompiledLayer>(graph, m_Param, GetName());
27  clone->m_PreCompiledObject.reset(const_cast<PreCompiledLayer*>(this)->m_PreCompiledObject.release());
28  return clone;
29 }
30 
31 std::unique_ptr<IWorkload> PreCompiledLayer::CreateWorkload(const armnn::IWorkloadFactory& factory) const
32 {
33  PreCompiledQueueDescriptor descriptor;
34  descriptor.m_PreCompiledObject = m_PreCompiledObject.get();
35  return factory.CreatePreCompiled(descriptor, PrepInfoAndDesc(descriptor));
36 }
37 
39 {
40  // NOTE: since the PreCompiledLayer is an internal layer created from a valid SubgraphView,
41  // we do not need to validate its input shapes
42 }
43 
45 {
46  m_PreCompiledObject = std::move(preCompiledObject);
47 }
48 
50 {
51  IgnoreUnused(visitor);
52  throw armnn::Exception("PreCompiledLayer should not appear in an input graph");
53 }
54 
55 } // namespace armnn
PreCompiledLayer(const PreCompiledDescriptor &param, const char *name)
+
PreCompiledDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
+ +
std::unique_ptr< void, PreCompiledObjectDeleter > PreCompiledObjectPtr
+
PreCompiledLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
+
Copyright (c) 2020 ARM Limited.
+
void IgnoreUnused(Ts &&...)
+ +
void SetPreCompiledObject(PreCompiledObjectPtr preCompiledObject)
+ + +
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
+ + + + + +
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
+
void ValidateTensorShapesFromInputs() override
+
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
+ +
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:305
+ + +
A PreCompiledDescriptor for the PreCompiledLayer.
+
virtual std::unique_ptr< IWorkload > CreatePreCompiled(const PreCompiledQueueDescriptor &descriptor, const WorkloadInfo &info) const
+
void Accept(ILayerVisitor &visitor) const override
Apply a visitor to this layer.
+ + +
+
+ + + + -- cgit v1.2.1