13 #include <common/include/ProfilingGuid.hpp> 15 #include <unordered_map> 29 const std::vector<armnn::ConstTensor>& constants,
38 return m_flatBufferBuilder;
53 return m_serializedLayers;
56 flatbuffers::Offset<armnnSerializer::FeatureCompatibilityVersions>
GetVersionTable();
60 flatbuffers::Offset<armnnSerializer::LayerBase> CreateLayerBase(
68 flatbuffers::Offset<armnnSerializer::ConstTensor> CreateConstTensorInfo(
72 flatbuffers::Offset<TensorInfo> CreateTensorInfo(
const armnn::TensorInfo& tensorInfo);
75 flatbuffers::Offset<flatbuffers::Vector<T>> CreateDataVector(
const void* memory,
unsigned int size);
81 std::vector<flatbuffers::Offset<armnnSerializer::InputSlot>> CreateInputSlots(
85 std::vector<flatbuffers::Offset<armnnSerializer::OutputSlot>> CreateOutputSlots(
89 flatbuffers::FlatBufferBuilder m_flatBufferBuilder;
92 std::vector<flatbuffers::Offset<armnnSerializer::AnyLayer>> m_serializedLayers;
95 std::vector<int> m_inputIds;
98 std::vector<int> m_outputIds;
101 std::unordered_map<armnn::LayerGuid, uint32_t > m_guidMap;
109 const char* name =
nullptr);
112 const char* name =
nullptr);
116 const char* name =
nullptr);
120 const char* name =
nullptr);
124 const std::vector<armnn::ConstTensor>& constants,
125 const char* name =
nullptr);
128 const char* name =
nullptr);
132 const char* name =
nullptr);
136 const char* name =
nullptr);
140 const char* name =
nullptr);
143 const std::vector<armnn::ConstTensor>& constants,
144 const char* name =
nullptr);
148 const std::vector<armnn::ConstTensor>& constants,
149 const char* name =
nullptr);
153 const char* name =
nullptr);
157 const char* name =
nullptr);
161 const std::vector<armnn::ConstTensor>& constants,
162 const char* name =
nullptr);
165 const char* name =
nullptr);
169 const std::vector<armnn::ConstTensor>& constants,
170 const char* name =
nullptr);
173 const char* name =
nullptr);
177 const char* name =
nullptr);
181 const char* name =
nullptr);
184 const char *name =
nullptr);
188 const char* name =
nullptr);
192 const char* name =
nullptr);
196 const char* name =
nullptr);
200 const char* name =
nullptr);
204 const char* name =
nullptr);
208 const char* name =
nullptr);
212 const char* name =
nullptr);
216 const std::vector<armnn::ConstTensor>& constants,
217 const char* name =
nullptr);
224 const char* name =
nullptr);
227 const char* name =
nullptr);
230 const char* name =
nullptr);
233 const char* name =
nullptr);
237 const char* name =
nullptr);
241 const char* name =
nullptr);
245 const char* name =
nullptr);
249 const char* name =
nullptr);
253 const char* name =
nullptr);
256 const char* name =
nullptr);
259 const char* name =
nullptr);
263 const std::vector<armnn::ConstTensor>& constants,
264 const char* name =
nullptr);
267 const std::vector<armnn::ConstTensor>& constants,
268 const char* name =
nullptr);
271 const char* name =
nullptr);
275 const char* name =
nullptr);
279 const char* name =
nullptr);
283 const char* name =
nullptr);
287 const char* name =
nullptr);
291 const char* name =
nullptr);
295 const char* name =
nullptr);
299 const char* name =
nullptr);
303 const char* name =
nullptr);
306 const char* name =
nullptr);
310 const char* name =
nullptr);
314 const char* name =
nullptr);
318 const char* name =
nullptr);
322 const char* name =
nullptr);
325 const char* name =
nullptr);
328 const char* name =
nullptr);
332 const std::vector<armnn::ConstTensor>& constants,
333 const char* =
nullptr);
337 const char* name =
nullptr);
341 const std::vector<armnn::ConstTensor>& constants,
342 const char* name =
nullptr);
360 bool SaveSerializedToStream(std::ostream& stream);
A ViewsDescriptor for the SplitterLayer.
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
flatbuffers::FlatBufferBuilder & GetFlatBufferBuilder()
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
A ReshapeDescriptor for the ReshapeLayer.
A ComparisonDescriptor for the ComparisonLayer.
A Convolution2dDescriptor for the Convolution2dLayer.
Main network class which provides the interface for building up a neural network. ...
A LogicalBinaryDescriptor for the LogicalBinaryLayer.
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
void ExecuteStrategy(const armnn::IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id) override
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
Base class for all descriptors.
A StackDescriptor for the StackLayer.
A PadDescriptor for the PadLayer.
An LstmDescriptor for the LstmLayer.
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
An OriginsDescriptor for the ConcatLayer.
A ReduceDescriptor for the REDUCE operators.
A FullyConnectedDescriptor for the FullyConnectedLayer.
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
A GatherDescriptor for the GatherLayer.
A StandInDescriptor for the StandIn layer.
A QLstmDescriptor for the QLstmLayer.
std::vector< int > & GetInputIds()
An ActivationDescriptor for the ActivationLayer.
A SliceDescriptor for the SliceLayer.
A Convolution3dDescriptor for the Convolution3dLayer.
A Pooling3dDescriptor for the Pooling3dLayer.
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
std::vector< int > & GetOutputIds()
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
profiling::ProfilingGuid LayerGuid
Define LayerGuid type.
A MeanDescriptor for the MeanLayer.
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
A Pooling2dDescriptor for the Pooling2dLayer.
A NormalizationDescriptor for the NormalizationLayer.
std::vector< flatbuffers::Offset< armnnSerializer::AnyLayer > > & GetSerializedLayers()
flatbuffers::Offset< armnnSerializer::FeatureCompatibilityVersions > GetVersionTable()
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
A ChannelShuffleDescriptor for the ChannelShuffle operator.
A SoftmaxDescriptor for the SoftmaxLayer.
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A FillDescriptor for the FillLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
A PermuteDescriptor for the PermuteLayer.