40 virtual unsigned int GetNumConnections()
const = 0;
44 virtual void SetTensorInfo(
const TensorInfo& tensorInfo) = 0;
46 virtual bool IsTensorInfoSet()
const = 0;
51 virtual unsigned int CalculateIndexOnOwner()
const = 0;
53 virtual LayerGuid GetOwningLayerGuid()
const = 0;
65 virtual const char* GetName()
const = 0;
68 virtual unsigned int GetNumInputSlots()
const = 0;
71 virtual unsigned int GetNumOutputSlots()
const = 0;
74 virtual const IInputSlot& GetInputSlot(
unsigned int index)
const = 0;
77 virtual IInputSlot& GetInputSlot(
unsigned int index) = 0;
80 virtual const IOutputSlot& GetOutputSlot(
unsigned int index)
const = 0;
83 virtual IOutputSlot& GetOutputSlot(
unsigned int index) = 0;
86 virtual std::vector<TensorShape> InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const = 0;
101 using INetworkPtr = std::unique_ptr<INetwork, void(*)(INetwork* network)>;
110 static void Destroy(
INetwork* network);
112 virtual Status PrintGraph() = 0;
128 const char* name =
nullptr) = 0;
135 const char* name =
nullptr) = 0;
145 const char* name =
nullptr) = 0;
156 const char* name =
nullptr) = 0;
161 const char* name =
nullptr) = 0;
167 const char* name =
nullptr) = 0;
174 const char* name =
nullptr) = 0;
186 const char* name =
nullptr) = 0;
192 const char* name =
nullptr) = 0;
199 const char* name =
nullptr) = 0;
213 const char* name =
nullptr) = 0;
220 const char* name =
nullptr) = 0;
231 const char* name =
nullptr) = 0;
236 const char* name =
nullptr) = 0;
242 const char* name =
nullptr) = 0;
249 const char* name =
nullptr) = 0;
256 const char* name =
nullptr) = 0;
263 const char* name =
nullptr) = 0;
270 const char* name =
nullptr) = 0;
277 const char* name =
nullptr) = 0;
292 const char* name =
nullptr) = 0;
302 const char* name =
nullptr) = 0;
318 const char* name =
nullptr) = 0;
334 virtual IConnectableLayer* AddMultiplicationLayer(
const char* name =
nullptr) = 0;
348 const char* name =
nullptr) = 0;
356 const char* name =
nullptr) = 0;
363 const char* name =
nullptr) = 0;
370 const char* name =
nullptr) = 0;
378 const char* name =
nullptr) = 0;
385 const char* name =
nullptr) = 0;
395 const char* name =
nullptr) = 0;
402 const char* name =
nullptr) = 0;
409 const char* name =
nullptr) = 0;
416 const char* name =
nullptr) = 0;
437 const char* name =
nullptr) = 0;
467 const char* name =
nullptr) = 0;
479 const char* name =
nullptr) = 0;
528 const char* name =
nullptr) = 0;
535 const char* name =
nullptr) = 0;
542 const char* name =
nullptr) = 0;
551 const char* name =
nullptr) = 0;
558 const char* name =
nullptr) = 0;
573 virtual Status PrintGraph() = 0;
574 virtual Status SerializeToDot(std::ostream& stream)
const = 0;
585 : m_ReduceFp32ToFp16(
false)
590 : m_ReduceFp32ToFp16(reduceFp32ToFp16)
611 const std::vector<BackendId>& backendPreferences,
A ViewsDescriptor for the SplitterLayer.
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
A TransposeConvolution2dDescriptor for the TransposeConvolution2dLayer.
~IConnectableLayer()
Objects are not deletable via the handle.
A ReshapeDescriptor for the ReshapeLayer.
A ComparisonDescriptor for the ComparisonLayer.
A Convolution2dDescriptor for the Convolution2dLayer.
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
Main network class which provides the interface for building up a neural network. ...
Copyright (c) 2020 ARM Limited.
A SpaceToDepthDescriptor for the SpaceToDepthLayer.
A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
A ResizeDescriptor for the ResizeLayer.
A StackDescriptor for the StackLayer.
A PadDescriptor for the PadLayer.
An LstmDescriptor for the LstmLayer.
IOptimizedNetworkPtr Optimize(const INetwork &network, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptions &options=OptimizerOptions(), Optional< std::vector< std::string > &> messages=EmptyOptional())
Create an optimized version of the network.
An output connection slot for a layer.
A L2NormalizationDescriptor for the L2NormalizationLayer.
An ArgMinMaxDescriptor for ArgMinMaxLayer.
An OriginsDescriptor for the ConcatLayer.
OptimizerOptions(bool reduceFp32ToFp16, bool debug)
A FullyConnectedDescriptor for the FullyConnectedLayer.
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr
A StandInDescriptor for the StandIn layer.
Device specific knowledge to be passed to the optimizer.
An ActivationDescriptor for the ActivationLayer.
A SliceDescriptor for the SliceLayer.
armnnUtils::Sockets::Socket Accept(Socket s, sockaddr *addr, socklen_t *addrlen, int flags)
A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
A ElementwiseUnaryDescriptor for the ElementwiseUnaryLayer.
A MeanDescriptor for the MeanLayer.
A TransposeDescriptor for the TransposeLayer.
A StridedSliceDescriptor for the StridedSliceLayer.
void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex, unsigned int toIndex)
#define ARMNN_DEPRECATED_MSG(message)
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
~IOutputSlot()
Not user deletable.
A Pooling2dDescriptor for the Pooling2dLayer.
armnn::Runtime::CreationOptions::ExternalProfilingOptions options
A NormalizationDescriptor for the NormalizationLayer.
An InstanceNormalizationDescriptor for InstanceNormalizationLayer.
A ResizeBilinearDescriptor for the ResizeBilinearLayer.
A SoftmaxDescriptor for the SoftmaxLayer.
A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer.
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
A PermuteDescriptor for the PermuteLayer.
std::vector< float > anchors({ 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 100.5f, 1.0f, 1.0f })