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);
131 const char* name =
nullptr);
135 const char* name =
nullptr);
138 const std::vector<armnn::ConstTensor>& contants,
139 const char* name =
nullptr);
143 const std::vector<armnn::ConstTensor>& contants,
144 const char* name =
nullptr);
148 const char* name =
nullptr);
152 const std::vector<armnn::ConstTensor>& constants,
153 const char* name =
nullptr);
156 const char* name =
nullptr);
160 const std::vector<armnn::ConstTensor>& constants,
161 const char* name =
nullptr);
164 const char* name =
nullptr);
168 const char* name =
nullptr);
175 const char* name =
nullptr);
178 const char *name =
nullptr);
182 const std::vector<armnn::ConstTensor>& constants,
183 const char* name =
nullptr);
187 const char* name =
nullptr);
194 const char* name =
nullptr);
198 const char* name =
nullptr);
202 const char* name =
nullptr);
206 const char* name =
nullptr);
210 const char* name =
nullptr);
214 const std::vector<armnn::ConstTensor>& constants,
215 const char* name =
nullptr);
222 const char* name =
nullptr);
225 const char* name =
nullptr);
228 const char* name =
nullptr);
233 const char* name =
nullptr);
236 const char* name =
nullptr);
240 const char* name =
nullptr);
244 const char* name =
nullptr);
248 const char* name =
nullptr);
252 const char* name =
nullptr);
255 const char* name =
nullptr);
258 const char* name =
nullptr);
262 const std::vector<armnn::ConstTensor>& constants,
263 const char* name =
nullptr);
266 const std::vector<armnn::ConstTensor>& constants,
267 const char* name =
nullptr);
270 const char* name =
nullptr);
274 const char* name =
nullptr);
278 const char* name =
nullptr);
282 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);
307 const char* name =
nullptr);
311 const char* name =
nullptr);
315 const char* name =
nullptr);
319 const char* name =
nullptr);
323 const char* name =
nullptr);
327 const char* name =
nullptr);
330 const char* name =
nullptr);
333 const char* name =
nullptr);
337 const std::vector<armnn::ConstTensor>& constants,
338 const char* =
nullptr);
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 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.