13 #include <unordered_map> 27 const std::vector<armnn::ConstTensor>& constants,
36 return m_flatBufferBuilder;
51 return m_serializedLayers;
54 flatbuffers::Offset<armnnSerializer::FeatureCompatibilityVersions>
GetVersionTable();
58 flatbuffers::Offset<armnnSerializer::LayerBase> CreateLayerBase(
66 flatbuffers::Offset<armnnSerializer::ConstTensor> CreateConstTensorInfo(
70 flatbuffers::Offset<TensorInfo> CreateTensorInfo(
const armnn::TensorInfo& tensorInfo);
73 flatbuffers::Offset<flatbuffers::Vector<T>> CreateDataVector(
const void* memory,
unsigned int size);
79 std::vector<flatbuffers::Offset<armnnSerializer::InputSlot>> CreateInputSlots(
83 std::vector<flatbuffers::Offset<armnnSerializer::OutputSlot>> CreateOutputSlots(
87 flatbuffers::FlatBufferBuilder m_flatBufferBuilder;
90 std::vector<flatbuffers::Offset<armnnSerializer::AnyLayer>> m_serializedLayers;
93 std::vector<int> m_inputIds;
96 std::vector<int> m_outputIds;
99 std::unordered_map<armnn::LayerGuid, uint32_t > m_guidMap;
107 const char* name =
nullptr);
111 const char* name =
nullptr);
114 const char* name =
nullptr);
118 const char* name =
nullptr);
122 const char* name =
nullptr);
126 const std::vector<armnn::ConstTensor>& constants,
127 const char* name =
nullptr);
130 const char* name =
nullptr);
134 const char* name =
nullptr);
138 const char* name =
nullptr);
141 const std::vector<armnn::ConstTensor>& contants,
142 const char* name =
nullptr);
146 const std::vector<armnn::ConstTensor>& contants,
147 const char* name =
nullptr);
151 const char* name =
nullptr);
155 const std::vector<armnn::ConstTensor>& constants,
156 const char* name =
nullptr);
159 const char* name =
nullptr);
163 const std::vector<armnn::ConstTensor>& constants,
164 const char* name =
nullptr);
167 const char* name =
nullptr);
171 const char* name =
nullptr);
178 const char* name =
nullptr);
181 const char *name =
nullptr);
185 const std::vector<armnn::ConstTensor>& constants,
186 const char* name =
nullptr);
190 const char* name =
nullptr);
197 const char* name =
nullptr);
201 const char* name =
nullptr);
205 const char* name =
nullptr);
209 const char* name =
nullptr);
213 const char* name =
nullptr);
217 const std::vector<armnn::ConstTensor>& constants,
218 const char* name =
nullptr);
225 const char* name =
nullptr);
228 const char* name =
nullptr);
231 const char* name =
nullptr);
236 const char* name =
nullptr);
239 const char* name =
nullptr);
243 const char* name =
nullptr);
247 const char* name =
nullptr);
251 const char* name =
nullptr);
255 const char* name =
nullptr);
258 const char* name =
nullptr);
261 const char* name =
nullptr);
265 const std::vector<armnn::ConstTensor>& constants,
266 const char* name =
nullptr);
269 const std::vector<armnn::ConstTensor>& constants,
270 const char* name =
nullptr);
273 const char* name =
nullptr);
277 const char* name =
nullptr);
281 const char* name =
nullptr);
285 const char* name =
nullptr);
290 const char* name =
nullptr);
294 const char* name =
nullptr);
298 const char* name =
nullptr);
302 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);
326 const char* name =
nullptr);
330 const char* name =
nullptr);
333 const char* name =
nullptr);
336 const char* name =
nullptr);
340 const std::vector<armnn::ConstTensor>& constants,
341 const char* =
nullptr);
345 const char* name =
nullptr);
363 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 ResizeDescriptor for the ResizeLayer.
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 SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
std::vector< int > & GetOutputIds()
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
A MeanDescriptor for the MeanLayer.
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
#define ARMNN_DEPRECATED_MSG(message)
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 ResizeBilinearDescriptor for the ResizeBilinearLayer.
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.