From 8efb48a6847c5cd166c561127ae6611150963ce3 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 19 May 2023 11:14:28 +0100 Subject: Update Doxygen docu for 23.05 Signed-off-by: Nikhil Raj Change-Id: I0a992286f14fa68fcc6e5eba31ac39fed003cbbe --- 23.05/_network_8hpp_source.xhtml | 668 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 668 insertions(+) create mode 100644 23.05/_network_8hpp_source.xhtml (limited to '23.05/_network_8hpp_source.xhtml') diff --git a/23.05/_network_8hpp_source.xhtml b/23.05/_network_8hpp_source.xhtml new file mode 100644 index 0000000000..c5ef1463ed --- /dev/null +++ b/23.05/_network_8hpp_source.xhtml @@ -0,0 +1,668 @@ + + + + + + + + + + + + + +ArmNN: src/armnn/Network.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Network.hpp
+
+
+Go to the documentation of this file.
1 //
+
2 // Copyright © 2017-2023 Arm Ltd and Contributors. All rights reserved.
+
3 // SPDX-License-Identifier: MIT
+
4 //
+
5 #pragma once
+
6 
+ +
8 #include <armnn/INetwork.hpp>
+
9 #include <armnn/LstmParams.hpp>
+ +
11 #include <armnn/TensorFwd.hpp>
+
12 #include <armnn/Types.hpp>
+
13 
+
14 #include <Graph.hpp>
+
15 #include <Layer.hpp>
+
16 #include <OptimizedNetworkImpl.hpp>
+ +
18 
+
19 #include <string>
+
20 #include <vector>
+
21 #include <map>
+
22 #include <memory>
+
23 
+
24 namespace armnn
+
25 {
+
26 
+
27 class Graph;
+
28 
+
29 using NetworkImplPtr = std::unique_ptr<NetworkImpl, void (*)(NetworkImpl* network)>;
+
30 
+
31 /// Private implementation of INetwork.
+ +
33 {
+
34 public:
+
35  NetworkImpl(const NetworkOptions& networkOptions = {});
+
36  ~NetworkImpl();
+
37 
+
38  const Graph& GetGraph() const
+
39  { return *m_Graph; }
+
40 
+ +
42 
+
43  IConnectableLayer* AddInputLayer(LayerBindingId id, const char* name = nullptr);
+
44 
+
45  IConnectableLayer* AddActivationLayer(const ActivationDescriptor& activationDescriptor,
+
46  const char* name = nullptr);
+
47  ARMNN_DEPRECATED_MSG_REMOVAL_DATE("Use AddElementwiseBinaryLayer instead", "24.02")
+
48  IConnectableLayer* AddAdditionLayer(const char* name = nullptr);
+
49 
+ +
51  const char* name = nullptr);
+
52 
+ +
54  const char* name = nullptr);
+
55 
+ +
57  const ConstTensor& mean,
+
58  const ConstTensor& variance,
+
59  const ConstTensor& beta,
+
60  const ConstTensor& gamma,
+
61  const char* name = nullptr);
+
62 
+
63  IConnectableLayer* AddBatchToSpaceNdLayer(const BatchToSpaceNdDescriptor& batchToSpaceNdDescriptor,
+
64  const char* name = nullptr);
+
65 
+
66  IConnectableLayer* AddCastLayer(const char* name = nullptr);
+
67 
+
68  IConnectableLayer* AddChannelShuffleLayer(const ChannelShuffleDescriptor& channelShuffleDescriptor,
+
69  const char* name = nullptr);
+
70 
+
71  IConnectableLayer* AddComparisonLayer(const ComparisonDescriptor& comparisonDescriptor,
+
72  const char* name = nullptr);
+
73 
+
74  IConnectableLayer* AddConcatLayer(const ConcatDescriptor& concatDescriptor,
+
75  const char* name = nullptr);
+
76 
+
77  IConnectableLayer* AddConvolution2dLayer(const Convolution2dDescriptor& convolution2dDescriptor,
+
78  const char* name = nullptr);
+
79 
+
80  IConnectableLayer* AddConvolution3dLayer(const Convolution3dDescriptor& convolution3dDescriptor,
+
81  const char* name = nullptr);
+
82 
+
83  IConnectableLayer* AddConstantLayer(const ConstTensor& input, const char* name = nullptr);
+
84 
+
85  IConnectableLayer* AddDepthToSpaceLayer(const DepthToSpaceDescriptor& depthToSpaceDescriptor,
+
86  const char* name = nullptr);
+
87 
+ +
89  const char* name = nullptr);
+
90 
+
91  IConnectableLayer* AddDequantizeLayer(const char* name = nullptr);
+
92 
+ +
94  const ConstTensor& anchors,
+
95  const char* name = nullptr);
+
96 
+ +
98  IConnectableLayer* AddDivisionLayer(const char* name = nullptr);
+
99 
+
100  IConnectableLayer* AddElementwiseBinaryLayer(const ElementwiseBinaryDescriptor& elementwiseBinaryDescriptor,
+
101  const char* name = nullptr);
+
102 
+
103  IConnectableLayer* AddElementwiseUnaryLayer(const ElementwiseUnaryDescriptor& elementwiseUnaryDescriptor,
+
104  const char* name = nullptr);
+
105 
+
106  IConnectableLayer* AddMergeLayer(const char* name = nullptr);
+
107 
+
108  IConnectableLayer* AddFillLayer(const FillDescriptor& fillDescriptor,
+
109  const char* name = nullptr);
+
110 
+
111  IConnectableLayer* AddFloorLayer(const char* name = nullptr);
+
112 
+
113  IConnectableLayer* AddFullyConnectedLayer(const FullyConnectedDescriptor& fullyConnectedDescriptor,
+
114  const char* name = nullptr);
+
115 
+
116  IConnectableLayer* AddGatherLayer(const GatherDescriptor& gatherDescriptor,
+
117  const char* name = nullptr);
+
118 
+
119  IConnectableLayer* AddGatherNdLayer(const char* name = nullptr);
+
120 
+ +
122  const char* name = nullptr);
+
123 
+ +
125  const char* name = nullptr);
+
126 
+
127  IConnectableLayer* AddLogSoftmaxLayer(const LogSoftmaxDescriptor& logSoftmaxDescriptor,
+
128  const char* name = nullptr);
+
129 
+
130  IConnectableLayer* AddLogicalBinaryLayer(const LogicalBinaryDescriptor& logicalBinaryDescriptor,
+
131  const char* name = nullptr);
+
132 
+
133  IConnectableLayer* AddLstmLayer(const LstmDescriptor& descriptor,
+
134  const LstmInputParams& params,
+
135  const char* name = nullptr);
+
136 
+ +
138  IConnectableLayer* AddMaximumLayer(const char* name = nullptr);
+
139 
+
140  IConnectableLayer* AddMeanLayer(const MeanDescriptor& meanDescriptor, const char* name = nullptr);
+
141 
+ +
143  IConnectableLayer* AddMinimumLayer(const char* name = nullptr);
+
144 
+ +
146  IConnectableLayer* AddMultiplicationLayer(const char* name = nullptr);
+
147 
+
148  IConnectableLayer* AddNormalizationLayer(const NormalizationDescriptor& normalizationDescriptor,
+
149  const char* name = nullptr);
+
150 
+
151  IConnectableLayer* AddOutputLayer(LayerBindingId id, const char* name = nullptr);
+
152 
+
153  IConnectableLayer* AddPadLayer(const PadDescriptor& padDescriptor, const char* name = nullptr);
+
154 
+
155  IConnectableLayer* AddPermuteLayer(const PermuteDescriptor& permuteDescriptor,
+
156  const char* name = nullptr);
+
157 
+
158  IConnectableLayer* AddPooling2dLayer(const Pooling2dDescriptor& pooling2dDescriptor,
+
159  const char* name = nullptr);
+
160 
+
161  IConnectableLayer* AddPooling3dLayer(const Pooling3dDescriptor& pooling3dDescriptor,
+
162  const char* name = nullptr);
+
163 
+
164  IConnectableLayer* AddPrecompiledLayer(const PreCompiledDescriptor& preCompiledDescriptor,
+
165  CompiledBlobPtr compiledBlobPtr,
+
166  const Optional<BackendId>& backend,
+
167  const char* name = nullptr);
+
168 
+
169  IConnectableLayer* AddPreluLayer(const char* name = nullptr);
+
170 
+
171  IConnectableLayer* AddQuantizeLayer(const char* name = nullptr);
+
172 
+ +
174  const LstmInputParams& params,
+
175  const char* name = nullptr);
+
176 
+ +
178  const char* name = nullptr);
+
179 
+
180  IConnectableLayer* AddRankLayer(const char* name = nullptr);
+
181 
+
182  IConnectableLayer* AddReduceLayer(const ReduceDescriptor& reduceDescriptor,
+
183  const char* name = nullptr);
+
184 
+
185  IConnectableLayer* AddResizeLayer(const ResizeDescriptor& resizeDescriptor,
+
186  const char* name = nullptr);
+
187 
+
188  IConnectableLayer* AddReshapeLayer(const ReshapeDescriptor& reshapeDescriptor,
+
189  const char* name = nullptr);
+
190 
+
191  IConnectableLayer* AddShapeLayer(const char* name = nullptr);
+
192 
+
193  IConnectableLayer* AddSliceLayer(const SliceDescriptor& sliceDescriptor, const char* name = nullptr);
+
194 
+
195  IConnectableLayer* AddSoftmaxLayer(const SoftmaxDescriptor& softmaxDescriptor,
+
196  const char* name = nullptr);
+
197 
+
198  IConnectableLayer* AddSplitterLayer(const ViewsDescriptor& splitterDescriptor,
+
199  const char* name = nullptr);
+
200 
+
201  IConnectableLayer* AddSpaceToBatchNdLayer(const SpaceToBatchNdDescriptor& spaceToBatchNdDescriptor,
+
202  const char* name = nullptr);
+
203 
+
204  IConnectableLayer* AddSpaceToDepthLayer(const SpaceToDepthDescriptor& spaceToDepthDescriptor,
+
205  const char* name = nullptr);
+
206 
+
207  IConnectableLayer* AddStackLayer(const StackDescriptor& stackDescriptor,
+
208  const char* name = nullptr);
+
209 
+ +
211  const char* name = nullptr);
+
212 
+
213  IConnectableLayer* AddStridedSliceLayer(const StridedSliceDescriptor& stridedSliceDescriptor,
+
214  const char* name = nullptr);
+
215 
+ +
217  IConnectableLayer* AddSubtractionLayer(const char* name = nullptr);
+
218 
+
219  IConnectableLayer* AddSwitchLayer(const char* name = nullptr);
+
220 
+ +
222  const ConstTensor& weights,
+
223  const Optional<ConstTensor>& biases,
+
224  const char* name = nullptr);
+
225 
+
226  IConnectableLayer* AddTransposeLayer(const TransposeDescriptor& transposeDescriptor,
+
227  const char* name = nullptr);
+
228 
+ +
230  const LstmInputParams& params,
+
231  const char* name = nullptr);
+
232 
+
233  IConnectableLayer* AddConvertFp16ToFp32Layer(const char* name = nullptr);
+
234 
+
235  IConnectableLayer* AddConvertFp32ToFp16Layer(const char* name = nullptr);
+
236 
+
237  void ExecuteStrategy(IStrategy& strategy) const;
+
238 
+
239 private:
+
240 
+
241  bool GetShapeInferenceMethod();
+
242  bool GetAllowExpandedDims();
+
243  NetworkOptions m_NetworkOptions;
+
244 
+
245  std::unique_ptr<Graph> m_Graph;
+
246  ModelOptions m_ModelOptions;
+
247 };
+
248 
+ +
250 {
+
251  bool m_Warning;
+
252  bool m_Error;
+
253 
+
254  OptimizationResult(bool warning, bool error)
+
255  : m_Warning(warning), m_Error(error)
+
256  {}
+
257 
+ +
259  : OptimizationResult(false, false)
+
260  {}
+
261 
+
262  bool IsOk() const
+
263  { return !m_Warning && !m_Error; }
+
264  bool IsWarningOnly() const
+
265  { return m_Warning && !m_Error; }
+
266  bool IsError() const
+
267  { return m_Error; }
+
268 
+
269 };
+
270 
+
271 using BackendsMap = std::map<BackendId, std::unique_ptr<class IBackendInternal>>;
+
272 
+ +
274  struct BackendSettings& backendSettings);
+
275 
+ +
277  BackendsMap& backends,
+
278  TensorHandleFactoryRegistry& registry,
+
279  bool importEnabled,
+
280  bool exportEnabled,
+
281  Optional<std::vector<std::string>&> errMessages);
+
282 
+ +
284  BackendSettings& backendSettings,
+
285  Graph::Iterator& firstLayer,
+
286  Graph::Iterator& lastLayer,
+
287  Optional<std::vector<std::string>&> errMessages);
+
288 
+
289 
+ +
291  BackendSettings& backendSettings,
+ + +
294  Optional<std::vector<std::string>&> errMessages);
+
295 
+ +
297 {
+
298  ~OptimizerOptionsOpaqueImpl() = default;
+
299 
+ +
301  : m_ReduceFp32ToFp16(false)
+
302  , m_Debug(false)
+
303  , m_DebugToFile(false)
+
304  , m_ReduceFp32ToBf16(false)
+
305  , m_shapeInferenceMethod(armnn::ShapeInferenceMethod::ValidateOnly)
+
306  , m_ImportEnabled(false)
+
307  , m_ModelOptions()
+
308  , m_ProfilingEnabled(false)
+
309  , m_ExportEnabled(false)
+
310  , m_AllowExpandedDims(false)
+
311  {
+
312  }
+
313 
+
314  explicit OptimizerOptionsOpaqueImpl(bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16,
+
315  bool importEnabled, ModelOptions modelOptions = {},
+
316  bool exportEnabled = false, bool debugToFile = false)
+
317  : m_ReduceFp32ToFp16(reduceFp32ToFp16)
+
318  , m_Debug(debug)
+
319  , m_DebugToFile(debugToFile)
+
320  , m_ReduceFp32ToBf16(reduceFp32ToBf16)
+
321  , m_shapeInferenceMethod(armnn::ShapeInferenceMethod::ValidateOnly)
+
322  , m_ImportEnabled(importEnabled)
+
323  , m_ModelOptions(modelOptions)
+
324  , m_ProfilingEnabled(false)
+
325  , m_ExportEnabled(exportEnabled)
+
326  , m_AllowExpandedDims(false)
+
327  {
+
328  }
+
329 
+
330  explicit OptimizerOptionsOpaqueImpl(bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16,
+
331  ShapeInferenceMethod shapeInferenceMethod,
+
332  bool importEnabled, ModelOptions modelOptions, bool exportEnabled,
+
333  bool debugToFile, bool allowExpandedDims)
+
334  : m_ReduceFp32ToFp16(reduceFp32ToFp16)
+
335  , m_Debug(debug)
+
336  , m_DebugToFile(debugToFile)
+
337  , m_ReduceFp32ToBf16(reduceFp32ToBf16)
+
338  , m_shapeInferenceMethod(shapeInferenceMethod)
+
339  , m_ImportEnabled(importEnabled)
+
340  , m_ModelOptions(modelOptions)
+
341  , m_ProfilingEnabled(false)
+
342  , m_ExportEnabled(exportEnabled)
+
343  , m_AllowExpandedDims(allowExpandedDims)
+
344  {
+
345  }
+
346 
+
347  /// Reduces all Fp32 operators in the model to Fp16 for faster processing.
+
348  /// @Note This feature works best if all operators of the model are in Fp32. ArmNN will add conversion layers
+
349  /// between layers that weren't in Fp32 in the first place or if the operator is not supported in Fp16.
+
350  /// The overhead of these conversions can lead to a slower overall performance if too many conversions are
+
351  /// required.
+
352  bool m_ReduceFp32ToFp16 = false;
+
353 
+
354  /// Add debug data for easier troubleshooting
+
355  bool m_Debug = false;
+
356 
+
357  /// Pass debug data to separate output files for easier troubleshooting
+
358  bool m_DebugToFile = false;
+
359 
+
360  /// @Note This feature has been replaced by enabling Fast Math in compute library backend options.
+
361  /// This is currently a placeholder option
+
362  bool m_ReduceFp32ToBf16 = false;
+
363 
+
364  /// Infer output size when not available
+ +
366 
+
367  /// Enable Import
+
368  bool m_ImportEnabled = false;
+
369 
+
370  /// Enable Model Options
+ +
372 
+
373  /// Enable profiling dump of the optimizer phase
+
374  bool m_ProfilingEnabled = false;
+
375 
+
376  /// Enable Export
+
377  bool m_ExportEnabled = false;
+
378 
+
379  /// When calculating tensor sizes, dimensions of size == 1 will be ignored
+
380  bool m_AllowExpandedDims = false;
+
381 };
+
382 
+
383 } // namespace armnn
+
+
+
OptimizationResult SelectTensorHandleStrategy(Graph &optGraph, BackendsMap &backends, TensorHandleFactoryRegistry &registry, bool importEnabled, bool exportEnabled, Optional< std::vector< std::string > & > errMessages)
Definition: Network.cpp:1702
+
IConnectableLayer * AddMergeLayer(const char *name=nullptr)
Definition: Network.cpp:2516
+
IConnectableLayer * AddPrecompiledLayer(const PreCompiledDescriptor &preCompiledDescriptor, CompiledBlobPtr compiledBlobPtr, const Optional< BackendId > &backend, const char *name=nullptr)
Definition: Network.cpp:2905
+ +
IConnectableLayer * AddResizeLayer(const ResizeDescriptor &resizeDescriptor, const char *name=nullptr)
Definition: Network.cpp:2268
+
IConnectableLayer * AddQuantizedLstmLayer(const QuantizedLstmInputParams &params, const char *name=nullptr)
Definition: Network.cpp:2572
+
IConnectableLayer * AddElementwiseUnaryLayer(const ElementwiseUnaryDescriptor &elementwiseUnaryDescriptor, const char *name=nullptr)
Definition: Network.cpp:2092
+
LayerList::const_iterator Iterator
Definition: Graph.hpp:53
+ +
IConnectableLayer * AddDepthToSpaceLayer(const DepthToSpaceDescriptor &depthToSpaceDescriptor, const char *name=nullptr)
Definition: Network.cpp:2138
+
IConnectableLayer * AddNormalizationLayer(const NormalizationDescriptor &normalizationDescriptor, const char *name=nullptr)
Definition: Network.cpp:2191
+
IConnectableLayer * AddBatchToSpaceNdLayer(const BatchToSpaceNdDescriptor &batchToSpaceNdDescriptor, const char *name=nullptr)
Definition: Network.cpp:2064
+ +
A GatherDescriptor for the GatherLayer.
+
A NormalizationDescriptor for the NormalizationLayer.
+
A TransposeDescriptor for the TransposeLayer.
+
void ExecuteStrategy(IStrategy &strategy) const
Definition: Network.cpp:2938
+
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
+ +
IConnectableLayer * AddPooling2dLayer(const Pooling2dDescriptor &pooling2dDescriptor, const char *name=nullptr)
Definition: Network.cpp:2167
+
A PadDescriptor for the PadLayer.
+
A SoftmaxDescriptor for the SoftmaxLayer.
+
std::unique_ptr< NetworkImpl, void(*)(NetworkImpl *network)> NetworkImplPtr
Definition: Network.hpp:29
+
IConnectableLayer * AddConvolution2dLayer(const Convolution2dDescriptor &convolution2dDescriptor, const char *name=nullptr)
Definition: Network.cpp:2116
+ +
A StackDescriptor for the StackLayer.
+
A SliceDescriptor for the SliceLayer.
+
std::map< BackendId, std::unique_ptr< class IBackendInternal > > BackendsMap
Definition: Network.hpp:271
+
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
Definition: Types.hpp:301
+
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:36
+
@ ValidateOnly
Validate all output shapes.
+
IConnectableLayer * AddInstanceNormalizationLayer(const InstanceNormalizationDescriptor &desc, const char *name=nullptr)
Definition: Network.cpp:2278
+ +
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:68
+
IConnectableLayer * AddRankLayer(const char *name=nullptr)
Definition: Network.cpp:2257
+
An LstmDescriptor for the LstmLayer.
+
A FullyConnectedDescriptor for the FullyConnectedLayer.
+
Status PrintGraph()
Definition: Network.cpp:2053
+
IConnectableLayer * AddMeanLayer(const MeanDescriptor &meanDescriptor, const char *name=nullptr)
Definition: Network.cpp:2479
+
IConnectableLayer * AddGatherNdLayer(const char *name=nullptr)
Definition: Network.cpp:2511
+
A BatchMatMulDescriptor for the BatchMatMul operator.
+
A ResizeDescriptor for the ResizeLayer.
+
IConnectableLayer * AddMinimumLayer(const char *name=nullptr)
Definition: Network.cpp:2220
+
A StridedSliceDescriptor for the StridedSliceLayer.
+
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
Definition: Tensor.hpp:327
+
A Pooling3dDescriptor for the Pooling3dLayer.
+
A ReduceDescriptor for the REDUCE operators.
+
IConnectableLayers::iterator IConnectableLayerIterator
+
std::vector< BackendOptions > ModelOptions
+
A ComparisonDescriptor for the ComparisonLayer.
Definition: Descriptors.hpp:89
+
IConnectableLayer * AddGatherLayer(const GatherDescriptor &gatherDescriptor, const char *name=nullptr)
Definition: Network.cpp:2505
+
IConnectableLayer * AddBatchMatMulLayer(const BatchMatMulDescriptor &desc, const char *name=nullptr)
Definition: Network.cpp:2900
+
A StandInDescriptor for the StandIn layer.
+
#define ARMNN_DEPRECATED_MSG_REMOVAL_DATE(message, removed_in_release)
Definition: Deprecated.hpp:44
+
IConnectableLayer * AddMultiplicationLayer(const char *name=nullptr)
Definition: Network.cpp:2230
+
A ViewsDescriptor for the SplitterLayer.
+
IConnectableLayer * AddAdditionLayer(const char *name=nullptr)
Definition: Network.cpp:2225
+
IConnectableLayer * AddLogSoftmaxLayer(const LogSoftmaxDescriptor &logSoftmaxDescriptor, const char *name=nullptr)
Definition: Network.cpp:2290
+
IConnectableLayer * AddChannelShuffleLayer(const ChannelShuffleDescriptor &channelShuffleDescriptor, const char *name=nullptr)
Definition: Network.cpp:2074
+
IConnectableLayer * AddStridedSliceLayer(const StridedSliceDescriptor &stridedSliceDescriptor, const char *name=nullptr)
Definition: Network.cpp:2499
+ +
A PreCompiledDescriptor for the PreCompiledLayer.
+
OptimizerOptionsOpaqueImpl(bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16, ShapeInferenceMethod shapeInferenceMethod, bool importEnabled, ModelOptions modelOptions, bool exportEnabled, bool debugToFile, bool allowExpandedDims)
Definition: Network.hpp:330
+
BackendsMap CreateSupportedBackends(TensorHandleFactoryRegistry &handleFactoryRegistry, BackendSettings &backendSettings)
Definition: Network.cpp:1221
+
ShapeInferenceMethod
The ShapeInferenceMethod modify how the output shapes are treated.
Definition: Types.hpp:232
+
IConnectableLayer * AddDepthwiseConvolution2dLayer(const DepthwiseConvolution2dDescriptor &convolution2dDescriptor, const char *name=nullptr)
Definition: Network.cpp:2144
+
IConnectableLayer * AddActivationLayer(const ActivationDescriptor &activationDescriptor, const char *name=nullptr)
Definition: Network.cpp:2179
+
IConnectableLayer * AddConstantLayer(const ConstTensor &input, const char *name=nullptr)
Definition: Network.cpp:2296
+ +
IConnectableLayer * AddConvertFp32ToFp16Layer(const char *name=nullptr)
Definition: Network.cpp:2127
+
Copyright (c) 2021 ARM Limited and Contributors.
+ + +
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
+
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
+
IConnectableLayer * AddDivisionLayer(const char *name=nullptr)
Definition: Network.cpp:2469
+
std::vector< BackendOptions > NetworkOptions
+
IConnectableLayer * AddOutputLayer(LayerBindingId id, const char *name=nullptr)
Definition: Network.cpp:2235
+
ModelOptions m_ModelOptions
Enable Model Options.
Definition: Network.hpp:371
+
IConnectableLayer * AddSpaceToDepthLayer(const SpaceToDepthDescriptor &spaceToDepthDescriptor, const char *name=nullptr)
Definition: Network.cpp:2317
+
+
IConnectableLayer * AddElementwiseBinaryLayer(const ElementwiseBinaryDescriptor &elementwiseBinaryDescriptor, const char *name=nullptr)
Definition: Network.cpp:2086
+
A FillDescriptor for the FillLayer.
+
IConnectableLayer * AddConvertFp16ToFp32Layer(const char *name=nullptr)
Definition: Network.cpp:2122
+
IConnectableLayer * AddSubtractionLayer(const char *name=nullptr)
Definition: Network.cpp:2474
+
IConnectableLayer * AddDetectionPostProcessLayer(const DetectionPostProcessDescriptor &descriptor, const ConstTensor &anchors, const char *name=nullptr)
Definition: Network.cpp:2151
+
IConnectableLayer * AddFloorLayer(const char *name=nullptr)
Definition: Network.cpp:2323
+
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
+
A MeanDescriptor for the MeanLayer.
+
OptimizationResult(bool warning, bool error)
Definition: Network.hpp:254
+
IConnectableLayer * AddPermuteLayer(const PermuteDescriptor &permuteDescriptor, const char *name=nullptr)
Definition: Network.cpp:2161
+
IConnectableLayer * AddPooling3dLayer(const Pooling3dDescriptor &pooling3dDescriptor, const char *name=nullptr)
Definition: Network.cpp:2173
+
IConnectableLayer * AddInputLayer(LayerBindingId id, const char *name=nullptr)
Definition: Network.cpp:2059
+
std::unique_ptr< void, CompiledBlobDeleter > CompiledBlobPtr
Definition: INetwork.hpp:331
+
IConnectableLayer * AddConcatLayer(const ConcatDescriptor &concatDescriptor, const char *name=nullptr)
Definition: Network.cpp:2110
+
A L2NormalizationDescriptor for the L2NormalizationLayer.
+
A ChannelShuffleDescriptor for the ChannelShuffle operator.
+
A Convolution3dDescriptor for the Convolution3dLayer.
+ + +
A Convolution2dDescriptor for the Convolution2dLayer.
+
IConnectableLayer * AddStandInLayer(const StandInDescriptor &descriptor, const char *name=nullptr)
Definition: Network.cpp:2566
+ +
IConnectableLayer * AddQLstmLayer(const QLstmDescriptor &descriptor, const LstmInputParams &params, const char *name=nullptr)
Definition: Network.cpp:2610
+
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
+
A QLstmDescriptor for the QLstmLayer.
+
Status
Definition: Types.hpp:42
+ +
IConnectableLayer * AddTransposeConvolution2dLayer(const TransposeConvolution2dDescriptor &descriptor, const ConstTensor &weights, const Optional< ConstTensor > &biases, const char *name=nullptr)
Definition: Network.cpp:2531
+
IConnectableLayer * AddFillLayer(const FillDescriptor &fillDescriptor, const char *name=nullptr)
Definition: Network.cpp:2098
+ +
IConnectableLayer * AddPreluLayer(const char *name=nullptr)
Definition: Network.cpp:2526
+ + +
IConnectableLayer * AddComparisonLayer(const ComparisonDescriptor &comparisonDescriptor, const char *name=nullptr)
Definition: Network.cpp:2080
+ +
IConnectableLayer * AddCastLayer(const char *name=nullptr)
Definition: Network.cpp:2070
+ +
IConnectableLayer * AddArgMinMaxLayer(const ArgMinMaxDescriptor &desc, const char *name=nullptr)
Definition: Network.cpp:2185
+
An OriginsDescriptor for the ConcatLayer.
+
IConnectableLayer * AddDequantizeLayer(const char *name=nullptr)
Definition: Network.cpp:2494
+
A ReshapeDescriptor for the ReshapeLayer.
+
IConnectableLayer * AddL2NormalizationLayer(const L2NormalizationDescriptor &desc, const char *name=nullptr)
Definition: Network.cpp:2284
+
IConnectableLayer * AddConvolution3dLayer(const Convolution3dDescriptor &convolution3dDescriptor, const char *name=nullptr)
Definition: Network.cpp:2132
+
A PermuteDescriptor for the PermuteLayer.
+
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
+ + +
const Graph & GetGraph() const
Definition: Network.hpp:38
+
IConnectableLayer * AddSwitchLayer(const char *name=nullptr)
Definition: Network.cpp:2521
+
IConnectableLayer * AddLogicalBinaryLayer(const LogicalBinaryDescriptor &logicalBinaryDescriptor, const char *name=nullptr)
Definition: Network.cpp:2752
+
A Pooling2dDescriptor for the Pooling2dLayer.
+
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
+
OptimizerOptionsOpaqueImpl(bool reduceFp32ToFp16, bool debug, bool reduceFp32ToBf16, bool importEnabled, ModelOptions modelOptions={}, bool exportEnabled=false, bool debugToFile=false)
Definition: Network.hpp:314
+
IConnectableLayer * AddUnidirectionalSequenceLstmLayer(const UnidirectionalSequenceLstmDescriptor &descriptor, const LstmInputParams &params, const char *name=nullptr)
Definition: Network.cpp:2758
+
IConnectableLayer * AddFullyConnectedLayer(const FullyConnectedDescriptor &fullyConnectedDescriptor, const char *name=nullptr)
Definition: Network.cpp:2104
+
IConnectableLayer * AddReshapeLayer(const ReshapeDescriptor &reshapeDescriptor, const char *name=nullptr)
Definition: Network.cpp:2305
+ + + +
bool IsWarningOnly() const
Definition: Network.hpp:264
+ +
An ArgMinMaxDescriptor for ArgMinMaxLayer.
Definition: Descriptors.hpp:67
+
Private implementation of INetwork.
Definition: Network.hpp:32
+
IConnectableLayer * AddTransposeLayer(const TransposeDescriptor &transposeDescriptor, const char *name=nullptr)
Definition: Network.cpp:2553
+
IConnectableLayer * AddLstmLayer(const LstmDescriptor &descriptor, const LstmInputParams &params, const char *name=nullptr)
Definition: Network.cpp:2328
+ + + +
IConnectableLayer * AddMaximumLayer(const char *name=nullptr)
Definition: Network.cpp:2215
+
IConnectableLayer * AddShapeLayer(const char *name=nullptr)
Definition: Network.cpp:2273
+
OptimizationResult AssignBackends(OptimizedNetworkImpl *optNetObjPtr, BackendSettings &backendSettings, Graph::Iterator &firstLayer, Graph::Iterator &lastLayer, Optional< std::vector< std::string > & > errMessages)
Definition: Network.cpp:1098
+
IConnectableLayer * AddBatchNormalizationLayer(const BatchNormalizationDescriptor &desc, const ConstTensor &mean, const ConstTensor &variance, const ConstTensor &beta, const ConstTensor &gamma, const char *name=nullptr)
Definition: Network.cpp:2240
+ +
IConnectableLayer * AddStackLayer(const StackDescriptor &stackDescriptor, const char *name=nullptr)
Definition: Network.cpp:2559
+
IConnectableLayer * AddSoftmaxLayer(const SoftmaxDescriptor &softmaxDescriptor, const char *name=nullptr)
Definition: Network.cpp:2203
+ +
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
+
IConnectableLayer * AddSliceLayer(const SliceDescriptor &sliceDescriptor, const char *name=nullptr)
Definition: Network.cpp:2198
+
IConnectableLayer * AddQuantizeLayer(const char *name=nullptr)
Definition: Network.cpp:2489
+ +
A ElementwiseBinaryDescriptor for the ElementwiseBinaryLayer.
+ +
IConnectableLayer * AddSplitterLayer(const ViewsDescriptor &splitterDescriptor, const char *name=nullptr)
Definition: Network.cpp:2209
+
IConnectableLayer * AddSpaceToBatchNdLayer(const SpaceToBatchNdDescriptor &spaceToBatchNdDescriptor, const char *name=nullptr)
Definition: Network.cpp:2311
+
IConnectableLayer * AddReduceLayer(const ReduceDescriptor &reduceDescriptor, const char *name=nullptr)
Definition: Network.cpp:2262
+
IConnectableLayer * AddPadLayer(const PadDescriptor &padDescriptor, const char *name=nullptr)
Definition: Network.cpp:2484
+
NetworkImpl(const NetworkOptions &networkOptions={})
Definition: Network.cpp:2044
+
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
+ + + + -- cgit v1.2.1