ArmNN
NotReleased
|
Private implementation of INetwork. More...
#include <Network.hpp>
Public Member Functions | |
Network () | |
~Network () | |
const Graph & | GetGraph () const |
Status | PrintGraph () override |
profiling::ProfilingGuid | GetGuid () const final |
IConnectableLayer * | AddInputLayer (LayerBindingId id, const char *name=nullptr) override |
IConnectableLayer * | AddArgMinMaxLayer (const ArgMinMaxDescriptor &desc, const char *name=nullptr) override |
IConnectableLayer * | AddBatchToSpaceNdLayer (const BatchToSpaceNdDescriptor &batchToSpaceNdDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddComparisonLayer (const ComparisonDescriptor &comparisonDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddConcatLayer (const ConcatDescriptor &concatDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddConvolution2dLayer (const Convolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const Optional< ConstTensor > &biases, const char *name=nullptr) override |
IConnectableLayer * | AddConvolution2dLayer (const Convolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const char *name=nullptr) override |
IConnectableLayer * | AddConvolution2dLayer (const Convolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const ConstTensor &biases, const char *name=nullptr) override |
IConnectableLayer * | AddDepthToSpaceLayer (const DepthToSpaceDescriptor &depthToSpaceDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddDepthwiseConvolution2dLayer (const DepthwiseConvolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const Optional< ConstTensor > &biases, const char *name=nullptr) override |
IConnectableLayer * | AddDepthwiseConvolution2dLayer (const DepthwiseConvolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const char *name=nullptr) override |
IConnectableLayer * | AddDepthwiseConvolution2dLayer (const DepthwiseConvolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const ConstTensor &biases, const char *name=nullptr) override |
IConnectableLayer * | AddDequantizeLayer (const char *name=nullptr) override |
IConnectableLayer * | AddDetectionPostProcessLayer (const DetectionPostProcessDescriptor &descriptor, const ConstTensor &anchors, const char *name=nullptr) override |
IConnectableLayer * | AddElementwiseUnaryLayer (const ElementwiseUnaryDescriptor &elementwiseUnaryDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddFullyConnectedLayer (const FullyConnectedDescriptor &fullyConnectedDescriptor, const ConstTensor &weights, const Optional< ConstTensor > &biases, const char *name=nullptr) override |
IConnectableLayer * | AddFullyConnectedLayer (const FullyConnectedDescriptor &fullyConnectedDescriptor, const ConstTensor &weights, const char *name=nullptr) override |
IConnectableLayer * | AddFullyConnectedLayer (const FullyConnectedDescriptor &fullyConnectedDescriptor, const ConstTensor &weights, const ConstTensor &biases, const char *name=nullptr) override |
IConnectableLayer * | AddGatherLayer (const char *name=nullptr) override |
IConnectableLayer * | AddPermuteLayer (const PermuteDescriptor &permuteDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddPooling2dLayer (const Pooling2dDescriptor &pooling2dDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddActivationLayer (const ActivationDescriptor &activationDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddNormalizationLayer (const NormalizationDescriptor &normalizationDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddSliceLayer (const SliceDescriptor &sliceDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddSoftmaxLayer (const SoftmaxDescriptor &softmaxDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddSplitterLayer (const ViewsDescriptor &splitterDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddMergerLayer (const MergerDescriptor &mergerDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddAbsLayer (const char *name=nullptr) override |
IConnectableLayer * | AddAdditionLayer (const char *name=nullptr) override |
IConnectableLayer * | AddMultiplicationLayer (const char *name=nullptr) override |
IConnectableLayer * | AddBatchNormalizationLayer (const BatchNormalizationDescriptor &desc, const ConstTensor &mean, const ConstTensor &variance, const ConstTensor &beta, const ConstTensor &gamma, const char *name=nullptr) override |
IConnectableLayer * | AddResizeBilinearLayer (const ResizeBilinearDescriptor &resizeDesc, const char *name=nullptr) override |
IConnectableLayer * | AddResizeLayer (const ResizeDescriptor &resizeDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddInstanceNormalizationLayer (const InstanceNormalizationDescriptor &desc, const char *name=nullptr) override |
IConnectableLayer * | AddL2NormalizationLayer (const L2NormalizationDescriptor &desc, const char *name=nullptr) override |
IConnectableLayer * | AddLogSoftmaxLayer (const LogSoftmaxDescriptor &logSoftmaxDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddConstantLayer (const ConstTensor &input, const char *name=nullptr) override |
IConnectableLayer * | AddReshapeLayer (const ReshapeDescriptor &reshapeDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddSpaceToBatchNdLayer (const SpaceToBatchNdDescriptor &spaceToBatchNdDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddSpaceToDepthLayer (const SpaceToDepthDescriptor &spaceToDepthDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddFloorLayer (const char *name=nullptr) override |
IConnectableLayer * | AddOutputLayer (LayerBindingId id, const char *name=nullptr) override |
IConnectableLayer * | AddLstmLayer (const LstmDescriptor &descriptor, const LstmInputParams ¶ms, const char *name=nullptr) override |
IConnectableLayer * | AddDivisionLayer (const char *name=nullptr) override |
IConnectableLayer * | AddSubtractionLayer (const char *name=nullptr) override |
IConnectableLayer * | AddMaximumLayer (const char *name=nullptr) override |
IConnectableLayer * | AddMeanLayer (const MeanDescriptor &meanDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddPadLayer (const PadDescriptor &padDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddQuantizeLayer (const char *name=nullptr) override |
IConnectableLayer * | AddStridedSliceLayer (const StridedSliceDescriptor &stridedSliceDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddMinimumLayer (const char *name=nullptr) override |
IConnectableLayer * | AddGreaterLayer (const char *name=nullptr) override |
IConnectableLayer * | AddEqualLayer (const char *name=nullptr) override |
IConnectableLayer * | AddRsqrtLayer (const char *name=nullptr) override |
IConnectableLayer * | AddMergeLayer (const char *name=nullptr) override |
IConnectableLayer * | AddSwitchLayer (const char *name=nullptr) override |
IConnectableLayer * | AddPreluLayer (const char *name=nullptr) override |
IConnectableLayer * | AddTransposeConvolution2dLayer (const TransposeConvolution2dDescriptor &descriptor, const ConstTensor &weights, const Optional< ConstTensor > &biases, const char *name=nullptr) override |
IConnectableLayer * | AddStackLayer (const StackDescriptor &stackDescriptor, const char *name=nullptr) override |
IConnectableLayer * | AddStandInLayer (const StandInDescriptor &descriptor, const char *name=nullptr) override |
IConnectableLayer * | AddQuantizedLstmLayer (const QuantizedLstmInputParams ¶ms, const char *name=nullptr) override |
void | Accept (ILayerVisitor &visitor) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from INetwork | |
static INetwork * | CreateRaw () |
static INetworkPtr | Create () |
static void | Destroy (INetwork *network) |
Protected Member Functions inherited from INetwork | |
~INetwork () | |
Private implementation of INetwork.
Definition at line 27 of file Network.hpp.
Network | ( | ) |
Definition at line 937 of file Network.cpp.
~Network | ( | ) |
Definition at line 943 of file Network.cpp.
|
overridevirtual |
Implements INetwork.
Definition at line 1580 of file Network.cpp.
References Network::GetGraph().
Referenced by Network::GetGuid().
|
overridevirtual |
Add absolute layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1207 of file Network.cpp.
References armnn::Abs, and Network::AddElementwiseUnaryLayer().
Referenced by Network::GetGuid().
|
overridevirtual |
Adds an activation layer to the network.
activationDescriptor | - ActivationDescriptor to configure the activation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1155 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds an addition layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1212 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds an ArgMinMax layer to the network.
desc | - Parameters for the L2 normalization operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1161 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a batch normalization layer to the network.
mean | - Pre-calculated mean for each channel. |
variance | - Pre-calculated variance for each channel. |
beta | - Per-channel additive factor. |
gamma | - Per-channel multiplicative factor. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1227 of file Network.cpp.
References BatchNormalizationLayer::m_Mean.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a batch to space ND layer to the network.
batchToSpaceNdDescriptor | - Description of the layer. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 958 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add a Comparison layer to the network.
name | - Optional name for the layer. |
desc | - Descriptor for the comparison operation. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 964 of file Network.cpp.
Referenced by Network::AddEqualLayer(), Network::AddGreaterLayer(), and Network::GetGuid().
|
overridevirtual |
Adds a concatenation layer to the network.
concatDescriptor | - ConcatDescriptor (synonym for OriginsDescriptor) to configure the concatenation process. Number of Views must be equal to the number of inputs, and their order must match - e.g. first view corresponds to the first input, second view to the second input, etc.... |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1023 of file Network.cpp.
References OptionalBase::has_value(), Convolution2dDescriptor::m_BiasEnabled, Convolution2dLayer::m_Weight, and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().
Referenced by Network::AddMergerLayer(), BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a layer with no inputs and a single output, which always corresponds to the passed in constant tensor.
input | - Tensor to be provided as the only output of the layer. The layer will maintain its own copy of the tensor data, meaning the memory referenced by input can be freed or reused after this function is called. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1280 of file Network.cpp.
References ConstantLayer::m_LayerOutput.
Referenced by armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a 2D convolution layer to the network.
convolution2dDescriptor | - Description of the 2D convolution layer. |
weights | - Tensor for the weights data. |
biases | - Optional tensor for the bias data. If specified, must match the output tensor shape. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1051 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Implements INetwork.
Definition at line 1059 of file Network.cpp.
|
overridevirtual |
Implements INetwork.
Definition at line 1067 of file Network.cpp.
References OptionalBase::has_value(), DepthwiseConvolution2dDescriptor::m_BiasEnabled, DepthwiseConvolution2dLayer::m_Weight, and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().
|
overridevirtual |
Adds a depth to space layer to the network.
depthToSpaceDescriptor | - Parameters for the depth to space operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1099 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a 2D depthwise convolution layer to the network.
convolution2dDescriptor | - Description of the 2D depthwise convolution layer. |
weights | - Tensor for the weights. Expected format: [channelMultiplier, inputChannels, height, width]. |
biases | Optional tensor for the bias data. If specified, must match the output tensor shape. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1105 of file Network.cpp.
Referenced by armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Implements INetwork.
Definition at line 1114 of file Network.cpp.
|
overridevirtual |
Implements INetwork.
Definition at line 1123 of file Network.cpp.
|
overridevirtual |
Adds a Dequantize layer to the network.
Implements INetwork.
Definition at line 1461 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a Detection PostProcess layer to the network.
descriptor | - Description of the Detection PostProcess layer. |
anchors | - Tensor for anchors. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1133 of file Network.cpp.
References anchors(), and DetectionPostProcessLayer::m_Anchors.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a division layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1436 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add an ElementwiseUnary layer to the network.
name | - Optional name for the layer. |
desc | - Descriptor for the elementwiseUnary operation. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 970 of file Network.cpp.
References OptionalBase::has_value(), FullyConnectedDescriptor::m_BiasEnabled, FullyConnectedLayer::m_Weight, and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().
Referenced by Network::AddAbsLayer(), Network::AddRsqrtLayer(), and Network::GetGuid().
|
overridevirtual |
Add a Equal layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1477 of file Network.cpp.
References Network::AddComparisonLayer(), and armnn::Equal.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a floor layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1307 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a fully connected layer to the network.
fullyConnectedDescriptor | - Description of the fully connected layer. |
weights | - Tensor for the weights data. |
biases | - Optional tensor for the bias data. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 998 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Implements INetwork.
Definition at line 1006 of file Network.cpp.
|
overridevirtual |
Implements INetwork.
Definition at line 1014 of file Network.cpp.
|
overridevirtual |
Add Gather layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1487 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add a Greater layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1472 of file Network.cpp.
References Network::AddComparisonLayer(), and armnn::Greater.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds an input layer to the network.
id | - User generated id to uniquely identify a particular input. The same id needs to be specified. when passing the inputs to the IRuntime::EnqueueWorkload() function. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 953 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds an instance normalization layer to the network.
desc | - Parameters for the instance normalization operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1262 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds an L2 normalization layer to the network. Normalization is performed along dimension 1, but requires a 4d input.
desc | - Parameters for the L2 normalization operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1268 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a log softmax layer to the network.
logSoftmaxDescriptor | - LogSoftmaxDescriptor to configure the log softmax. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1274 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add a Lstm layer to the network
descriptor | - Parameters for the Lstm operation |
params | - Weights and biases for the LSTM cell |
name | - Optional name for the layer |
Implements INetwork.
Definition at line 1312 of file Network.cpp.
References LstmLayer::m_BasicParameters, LstmInputParams::m_CellBias, LstmInputParams::m_CellLayerNormWeights, LstmInputParams::m_CellToForgetWeights, LstmInputParams::m_CellToInputWeights, LstmInputParams::m_CellToOutputWeights, LstmInputParams::m_ForgetGateBias, LstmInputParams::m_ForgetLayerNormWeights, LstmInputParams::m_InputGateBias, LstmInputParams::m_InputLayerNormWeights, LstmInputParams::m_InputToCellWeights, LstmInputParams::m_InputToForgetWeights, LstmBasicParameters::m_InputToForgetWeights, LstmInputParams::m_InputToInputWeights, LstmInputParams::m_InputToOutputWeights, LstmInputParams::m_OutputGateBias, LstmInputParams::m_OutputLayerNormWeights, LstmInputParams::m_ProjectionBias, LstmInputParams::m_ProjectionWeights, LstmInputParams::m_RecurrentToCellWeights, LstmInputParams::m_RecurrentToForgetWeights, LstmInputParams::m_RecurrentToInputWeights, and LstmInputParams::m_RecurrentToOutputWeights.
Referenced by armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Add a Maximum layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1191 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add a Mean layer to the network.
meanDescriptor | - Parameters for the mean operation. |
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1446 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a merge layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1492 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a concat layer to the network.
mergerDescriptor | - MergerDescriptor (synonym for OriginsDescriptor) to configure the concatenation process. Number of Views must be equal to the number of inputs, and their order must match - e.g. first view corresponds to the first input, second view to the second input, etc.... |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1201 of file Network.cpp.
References Network::AddConcatLayer().
Referenced by Network::GetGuid().
|
overridevirtual |
Add a Minimum layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1196 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a multiplication layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1217 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a normalization layer to the network.
normalizationDescriptor | - NormalizationDescriptor to configure the normalization. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1167 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds an output layer to the network.
id | - User generated id to uniquely identify a particular output. The same id needs to be specified when passing the outputs to the IRuntime::EnqueueWorkload() function. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1222 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a fully pad layer to the network.
paddings | - n by 2 tensor, where n is the rank of the input tensor, such that paddings[i,0] indicates the amount of padding to add in front of dimonsion i, and paddings[i,1] indicates the amount of padding to add after the end of dimension i |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1451 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a permute layer to the network.
permuteDescriptor | - PermuteDescriptor to configure the permute. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1143 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a pooling layer to the network.
pooling2dDescriptor | - Pooling2dDescriptor to configure the pooling. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1149 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a PReLU layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1502 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add a QuantizedLstm layer to the network
params | - The weights and biases for the Quantized LSTM cell |
name | - Optional name for the layer |
Implements INetwork.
Definition at line 1542 of file Network.cpp.
References QuantizedLstmInputParams::GetCellBias(), QuantizedLstmInputParams::GetForgetGateBias(), QuantizedLstmInputParams::GetInputGateBias(), QuantizedLstmInputParams::GetInputToCellWeights(), QuantizedLstmInputParams::GetInputToForgetWeights(), QuantizedLstmInputParams::GetInputToInputWeights(), QuantizedLstmInputParams::GetInputToOutputWeights(), QuantizedLstmInputParams::GetOutputGateBias(), QuantizedLstmInputParams::GetRecurrentToCellWeights(), QuantizedLstmInputParams::GetRecurrentToForgetWeights(), QuantizedLstmInputParams::GetRecurrentToInputWeights(), QuantizedLstmInputParams::GetRecurrentToOutputWeights(), QuantizedLstmParameters::m_InputToInputWeights, and QuantizedLstmLayer::m_QuantizedLstmParameters.
Referenced by armnn::BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Add a quantize layer to the network
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1456 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a reshape layer to the network.
reshapeDescriptor | - Parameters for the reshape operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1289 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a resize bilinear layer to the network.
resizeDesc | - Parameters for the resize operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1244 of file Network.cpp.
References armnn::Bilinear, ResizeBilinearDescriptor::m_DataLayout, ResizeDescriptor::m_DataLayout, ResizeDescriptor::m_Method, ResizeBilinearDescriptor::m_TargetHeight, ResizeDescriptor::m_TargetHeight, ResizeBilinearDescriptor::m_TargetWidth, and ResizeDescriptor::m_TargetWidth.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a resize layer to the network.
resizeDescriptor | - Parameters for the resize operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1256 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add Reciprocal of square root layer to the network.
name | - Optional name for the layer. @ return - Interface for configuring the layer. |
Implements INetwork.
Definition at line 1482 of file Network.cpp.
References Network::AddElementwiseUnaryLayer(), and armnn::Rsqrt.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a slice layer to the network.
sliceDescriptor | - SliceDescriptor to configure the slice operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1174 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a softmax layer to the network. If the data type is QAsymm8, then the output quantization parameters must have a scale of 1/256 and an offset of 0
softmaxDescriptor | - SoftmaxDescriptor to configure the softmax. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1179 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a space to batch layer to the network.
spaceToBatchNdDescriptor | - Parameters for the space to batch operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1295 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a space to depth layer to the network.
spaceToDepthDescriptor | - Parameters for the space to depth operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1301 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a splitter layer to the network.
splitterDescriptor | - ViewsDescriptor to configure the splitting process. Number of Views must be equal to the number of outputs, and their order must match - e.g. first view corresponds to the first output, second view to the second output, etc.... |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1185 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a stack layer to the network.
descriptor | - Description of the stack layer. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1529 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Add a stand-in layer for a type unknown to the Arm NN framework. Note: Due to the nature of this layer, no validation can be performed by the framework. Furthermore, Any model containing this layer cannot make use of dynamic tensors since the tensor sizes cannot be inferred. - Descriptor for the StandIn layer.
Implements INetwork.
Definition at line 1536 of file Network.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGuid().
|
overridevirtual |
Adds a strided slice layer to the network.
StridedSliceDescriptor | - Parameters for the strided slice operation. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1466 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a subtraction layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1441 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a switch layer to the network.
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1497 of file Network.cpp.
Referenced by Network::GetGuid().
|
overridevirtual |
Adds a 2D transpose convolution layer to the network.
descriptor | - Description of the 2D transpose convolution layer. |
weights | - Tensor for the weights data. |
biases | - Optional tensor for the bias data. |
name | - Optional name for the layer. |
Implements INetwork.
Definition at line 1507 of file Network.cpp.
References OptionalBase::has_value(), TransposeConvolution2dDescriptor::m_BiasEnabled, TransposeConvolution2dLayer::m_Weight, and OptionalReferenceSwitch< std::is_reference< T >::value, T >::value().
Referenced by Network::GetGuid().
|
inline |
Definition at line 33 of file Network.hpp.
References Network::PrintGraph().
Referenced by Network::Accept(), BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), armnn::GetInputTensorInfo(), and armnn::Optimize().
|
inlinefinalvirtual |
Implements INetwork.
Definition at line 37 of file Network.hpp.
References Network::Accept(), Network::AddAbsLayer(), Network::AddActivationLayer(), Network::AddAdditionLayer(), Network::AddArgMinMaxLayer(), Network::AddBatchNormalizationLayer(), Network::AddBatchToSpaceNdLayer(), Network::AddComparisonLayer(), Network::AddConcatLayer(), Network::AddConstantLayer(), Network::AddConvolution2dLayer(), Network::AddDepthToSpaceLayer(), Network::AddDepthwiseConvolution2dLayer(), Network::AddDequantizeLayer(), Network::AddDetectionPostProcessLayer(), Network::AddDivisionLayer(), Network::AddElementwiseUnaryLayer(), Network::AddEqualLayer(), Network::AddFloorLayer(), Network::AddFullyConnectedLayer(), Network::AddGatherLayer(), Network::AddGreaterLayer(), Network::AddInputLayer(), Network::AddInstanceNormalizationLayer(), Network::AddL2NormalizationLayer(), Network::AddLogSoftmaxLayer(), Network::AddLstmLayer(), Network::AddMaximumLayer(), Network::AddMeanLayer(), Network::AddMergeLayer(), Network::AddMergerLayer(), Network::AddMinimumLayer(), Network::AddMultiplicationLayer(), Network::AddNormalizationLayer(), Network::AddOutputLayer(), Network::AddPadLayer(), Network::AddPermuteLayer(), Network::AddPooling2dLayer(), Network::AddPreluLayer(), Network::AddQuantizedLstmLayer(), Network::AddQuantizeLayer(), Network::AddReshapeLayer(), Network::AddResizeBilinearLayer(), Network::AddResizeLayer(), Network::AddRsqrtLayer(), Network::AddSliceLayer(), Network::AddSoftmaxLayer(), Network::AddSpaceToBatchNdLayer(), Network::AddSpaceToDepthLayer(), Network::AddSplitterLayer(), Network::AddStackLayer(), Network::AddStandInLayer(), Network::AddStridedSliceLayer(), Network::AddSubtractionLayer(), Network::AddSwitchLayer(), Network::AddTransposeConvolution2dLayer(), anchors(), and ARMNN_DEPRECATED_MSG.
|
overridevirtual |
Implements INetwork.
Definition at line 947 of file Network.cpp.
References armnn::Success.
Referenced by BOOST_AUTO_TEST_CASE(), and Network::GetGraph().