22.08
|
#include <Layer.hpp>
Additional Inherited Members | |
Protected Member Functions inherited from IOutputSlot | |
~IOutputSlot () | |
Not user deletable. More... | |
|
inlineexplicit |
Definition at line 90 of file Layer.hpp.
|
delete |
|
default |
|
inline |
|
overridevirtual |
Implements IOutputSlot.
Definition at line 159 of file Layer.cpp.
References ARMNN_ASSERT_MSG, Layer::GetNumOutputSlots(), Layer::GetOutputSlot(), and InputSlot::GetOwningLayer().
Referenced by DebugLayer::CreateWorkload().
int Connect | ( | InputSlot & | destination | ) |
Definition at line 112 of file Layer.cpp.
References armnn::numeric_cast(), InputSlot::SetConnection(), and armnn::Undefined.
Referenced by NetworkImpl::AddConvolution2dLayer(), NetworkImpl::AddDepthwiseConvolution2dLayer(), NetworkImpl::AddFullyConnectedLayer(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), InputSlot::Insert(), Graph::InsertNewLayer(), OutputSlot::MoveAllConnections(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and TEST_SUITE().
|
inlineoverridevirtual |
void Disconnect | ( | InputSlot & | slot | ) |
Definition at line 120 of file Layer.cpp.
References InputSlot::SetConnection().
Referenced by armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
inlineoverridevirtual |
Implements IOutputSlot.
Definition at line 158 of file Layer.hpp.
References armnnUtils::operator==().
void DisconnectAll | ( | ) |
Definition at line 136 of file Layer.cpp.
References InputSlot::GetConnection().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 75 of file Layer.cpp.
Referenced by SplitterLayer::CreateWorkload(), OutputSlot::operator==(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), and TEST_SUITE().
|
overridevirtual |
Implements IOutputSlot.
|
inline |
Definition at line 132 of file Layer.hpp.
Referenced by Graph::AddCompatibilityLayers(), armnn::CalculateSlotOption(), armnn::CalculateSlotOptionForInput(), SquashEqualSiblingsImpl< Comparable >::Run(), and armnn::SelectTensorHandleStrategy().
|
inline |
Definition at line 133 of file Layer.hpp.
Referenced by Graph::AddCompatibilityLayers().
EdgeStrategy GetEdgeStrategyForConnection | ( | unsigned int | connectionIdx | ) | const |
Definition at line 215 of file Layer.cpp.
Referenced by TEST_SUITE().
|
inlineoverridevirtual |
Implements IOutputSlot.
Definition at line 145 of file Layer.hpp.
References InputSlot::GetConnection(), armnn::GetTensorInfo(), and armnn::numeric_cast().
Referenced by ConcatLayer::CreateWorkload(), OutputSlot::operator==(), RefBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), LoadedNetwork::RegisterDebugCallback(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), MoveTransposeUpImpl::Run(), MovePermuteUpImpl::Run(), SquashEqualSiblingsImpl< Comparable >::Run(), and AddBroadcastReshapeLayerImpl::Run().
|
inline |
Definition at line 126 of file Layer.hpp.
Referenced by ConcatLayer::CreateWorkload(), OutputSlot::MoveAllConnections(), and TEST_SUITE().
|
inline |
|
overridevirtual |
Implements IOutputSlot.
|
overridevirtual |
Implements IOutputSlot.
|
inline |
Definition at line 119 of file Layer.hpp.
References InputSlot::GetOwningIConnectableLayer().
Referenced by armnn::CalculateSlotOption(), armnn::CalculateSlotOptionForInput(), DebugLayer::CreateWorkload(), ConcatLayer::CreateWorkload(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), LayerWithParameters< Pooling3dDescriptor >::GetConnectedConstantAsInputTensors(), Layer::GetPriority(), Graph::InsertNewLayer(), RefBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstPermuteLayersToConstLayers::Run(), FuseConvertFp32ToBf16IntoConstLayers::Run(), OptimizeInverseConversionsImpl::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), MovePermuteUpImpl::Run(), RedirectMembersToConstantInputsImpl::Run(), MoveTransposeUpImpl::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), AddBroadcastReshapeLayerImpl::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and Graph::SerializeToDot().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 195 of file Layer.cpp.
References Layer::GetGuid(), and InputSlot::GetOwningLayer().
ITensorHandleFactory::FactoryId GetTensorHandleFactoryId | ( | ) | const |
Definition at line 205 of file Layer.cpp.
Referenced by Graph::AddCompatibilityLayers(), SplitterLayer::CreateTensorHandles(), ConcatLayer::CreateTensorHandles(), Layer::CreateTensorHandles(), SplitterLayer::CreateWorkload(), ConcatLayer::CreateWorkload(), LoadedNetwork::ImportInputs(), LoadedNetwork::ImportOutputs(), and TEST_SUITE().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 92 of file Layer.cpp.
Referenced by armnn::CheckScaleSetOnQuantizedType(), ConcatLayer::CreateWorkload(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), Layer::GetDataType(), LoadedNetwork::ImportInputs(), LoadedNetwork::ImportOutputs(), armnn::InsertConvertBf16ToFp32LayersBefore(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToBf16LayersAfter(), armnn::InsertConvertFp32ToBf16LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), armnn::InsertDebugLayerAfter(), RefBackend::OptimizeSubgraphView(), NeonBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), ConvertConstPermuteLayersToConstLayers::Run(), FuseConvertFp32ToBf16IntoConstLayers::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), PermuteDepthwiseConv2dWeightsImpl::Run(), AddBroadcastReshapeLayerImpl::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), Graph::SerializeToDot(), TEST_SUITE(), Layer::ValidateAndCopyShape(), ElementwiseBaseLayer::ValidateTensorShapesFromInputs(), QuantizeLayer::ValidateTensorShapesFromInputs(), RankLayer::ValidateTensorShapesFromInputs(), ActivationLayer::ValidateTensorShapesFromInputs(), ChannelShuffleLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs(), ReduceLayer::ValidateTensorShapesFromInputs(), FillLayer::ValidateTensorShapesFromInputs(), StackLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), L2NormalizationLayer::ValidateTensorShapesFromInputs(), ConvertBf16ToFp32Layer::ValidateTensorShapesFromInputs(), MemCopyLayer::ValidateTensorShapesFromInputs(), AbsLayer::ValidateTensorShapesFromInputs(), MemImportLayer::ValidateTensorShapesFromInputs(), InstanceNormalizationLayer::ValidateTensorShapesFromInputs(), MergeLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToBf16Layer::ValidateTensorShapesFromInputs(), CastLayer::ValidateTensorShapesFromInputs(), BatchToSpaceNdLayer::ValidateTensorShapesFromInputs(), DebugLayer::ValidateTensorShapesFromInputs(), ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs(), Pooling2dLayer::ValidateTensorShapesFromInputs(), SliceLayer::ValidateTensorShapesFromInputs(), DequantizeLayer::ValidateTensorShapesFromInputs(), Pooling3dLayer::ValidateTensorShapesFromInputs(), NormalizationLayer::ValidateTensorShapesFromInputs(), ResizeLayer::ValidateTensorShapesFromInputs(), RsqrtLayer::ValidateTensorShapesFromInputs(), ShapeLayer::ValidateTensorShapesFromInputs(), FakeQuantizationLayer::ValidateTensorShapesFromInputs(), SoftmaxLayer::ValidateTensorShapesFromInputs(), FloorLayer::ValidateTensorShapesFromInputs(), TransposeLayer::ValidateTensorShapesFromInputs(), MeanLayer::ValidateTensorShapesFromInputs(), LogSoftmaxLayer::ValidateTensorShapesFromInputs(), PadLayer::ValidateTensorShapesFromInputs(), PermuteLayer::ValidateTensorShapesFromInputs(), ReshapeLayer::ValidateTensorShapesFromInputs(), ConstantLayer::ValidateTensorShapesFromInputs(), Convolution3dLayer::ValidateTensorShapesFromInputs(), GatherNdLayer::ValidateTensorShapesFromInputs(), BatchMatMulLayer::ValidateTensorShapesFromInputs(), GatherLayer::ValidateTensorShapesFromInputs(), DetectionPostProcessLayer::ValidateTensorShapesFromInputs(), ArgMinMaxLayer::ValidateTensorShapesFromInputs(), ElementwiseUnaryLayer::ValidateTensorShapesFromInputs(), StridedSliceLayer::ValidateTensorShapesFromInputs(), ComparisonLayer::ValidateTensorShapesFromInputs(), SpaceToDepthLayer::ValidateTensorShapesFromInputs(), DepthToSpaceLayer::ValidateTensorShapesFromInputs(), LogicalBinaryLayer::ValidateTensorShapesFromInputs(), SpaceToBatchNdLayer::ValidateTensorShapesFromInputs(), PreluLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), FullyConnectedLayer::ValidateTensorShapesFromInputs(), SplitterLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), ConcatLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), BatchNormalizationLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), and QLstmLayer::ValidateTensorShapesFromInputs().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 97 of file Layer.cpp.
References InputSlot::GetOwningLayer(), armnn::InferAndValidate, and Layer::ValidateTensorShapesFromInputs().
Referenced by AddBroadcastReshapeLayerImpl::Run().
void MoveAllConnections | ( | OutputSlot & | destination | ) |
Moves all connections to another OutputSlot.
Definition at line 145 of file Layer.cpp.
References ARMNN_ASSERT_MSG, OutputSlot::Connect(), InputSlot::GetConnection(), OutputSlot::GetOutputHandler(), armnn::GetTensorInfo(), OutputHandler::SetTensorInfo(), and armnn::Undefined.
Referenced by Graph::InsertNewLayer(), PermuteAsReshapeImpl::Run(), TransposeAsReshapeImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), FuseConvertFp32ToBf16IntoConstLayers::Run(), ConvertConstPermuteLayersToConstLayers::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), OptimizeInverseConversionsImpl::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
delete |
|
delete |
bool operator== | ( | const OutputSlot & | other | ) | const |
Definition at line 172 of file Layer.cpp.
References InputSlot::GetConnection(), OutputSlot::GetConnection(), and OutputSlot::GetNumConnections().
void SetEdgeStrategy | ( | unsigned int | connectionIndex, |
EdgeStrategy | strategy | ||
) |
Definition at line 210 of file Layer.cpp.
Referenced by Graph::AddCompatibilityLayers(), InputSlot::Insert(), armnn::SelectTensorHandleStrategy(), and TEST_SUITE().
void SetTensorHandleFactory | ( | const ITensorHandleFactory::FactoryId & | id | ) |
Definition at line 200 of file Layer.cpp.
Referenced by Graph::AddCompatibilityLayers(), and armnn::SelectTensorHandleStrategy().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 87 of file Layer.cpp.
Referenced by NetworkImpl::AddConvolution2dLayer(), NetworkImpl::AddDepthwiseConvolution2dLayer(), NetworkImpl::AddFullyConnectedLayer(), armnn::AttemptBackendAssignment(), armnn::ChainReduceLayers(), armnn::CheckScaleSetOnQuantizedType(), armnn::InsertConvertBf16ToFp32LayersBefore(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToBf16LayersAfter(), armnn::InsertConvertFp32ToBf16LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), armnn::InsertDebugLayerAfter(), FuseConvertFp32ToBf16IntoConstLayers::Run(), ConvertConstPermuteLayersToConstLayers::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), PermuteDepthwiseConv2dWeightsImpl::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), AddBroadcastReshapeLayerImpl::Run(), TEST_SUITE(), and Layer::ValidateAndCopyShape().
bool ValidateTensorShape | ( | const TensorShape & | shape | ) | const |
Definition at line 106 of file Layer.cpp.
References ARMNN_ASSERT_MSG.