24.08
|
#include <Layer.hpp>
Additional Inherited Members | |
Protected Member Functions inherited from IOutputSlot | |
~IOutputSlot () | |
Not user deletable. More... | |
|
inlineexplicit |
|
delete |
|
default |
|
inline |
|
overridevirtual |
Implements IOutputSlot.
Definition at line 172 of file Layer.cpp.
References Layer::GetNumOutputSlots(), Layer::GetOutputSlot(), and OutputSlot::GetOwningLayer().
Referenced by DebugLayer::CreateWorkload(), and GenerateUniqueInputName().
|
inlineoverridevirtual |
int Connect | ( | InputSlot & | destination | ) |
Definition at line 123 of file Layer.cpp.
References InputSlot::SetConnection(), and armnn::Undefined.
Referenced by armnn::ApplyBackendOptimizations(), OutputSlot::Connect(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), InputSlot::Insert(), Graph::InsertNewLayer(), OutputSlot::MoveAllConnections(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
inlineoverridevirtual |
Implements IOutputSlot.
Definition at line 171 of file Layer.hpp.
References OutputSlot::Disconnect().
void Disconnect | ( | InputSlot & | slot | ) |
Definition at line 131 of file Layer.cpp.
References InputSlot::SetConnection().
Referenced by armnn::ApplyBackendOptimizations(), OutputSlot::Disconnect(), OutputSlot::DisconnectAll(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), InputSlot::Insert(), OutputSlot::MoveAllConnections(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and InputSlot::~InputSlot().
void DisconnectAll | ( | ) |
Definition at line 147 of file Layer.cpp.
References OutputSlot::Disconnect(), OutputSlot::GetConnection(), and OutputSlot::GetNumConnections().
Referenced by OutputSlot::~OutputSlot().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 83 of file Layer.cpp.
Referenced by armnn::ApplyBackendOptimizations(), armnn::BuildAddMulAddTensorInfoLists(), armnn::ConnectedToLayerType(), armnn::ConnectedToLayerWithNCHW(), ConvertConstantToTosaOperator(), OutputSlot::DisconnectAll(), GenerateUniqueOutputName(), GetTosaMapping(), OutputSlot::MoveAllConnections(), OutputSlot::operator==(), armnn::RemoveReshapeLayer(), and DeleteBroadcastToImpl::Run().
|
overridevirtual |
Implements IOutputSlot.
|
inline |
Definition at line 145 of file Layer.hpp.
Referenced by Graph::AddCompatibilityLayers(), armnn::CalculateSlotOption(), armnn::CalculateSlotOptionForInput(), SquashEqualSiblingsImpl< Comparable >::Run(), and armnn::SelectTensorHandleStrategy().
|
inline |
Definition at line 146 of file Layer.hpp.
Referenced by Graph::AddCompatibilityLayers().
EdgeStrategy GetEdgeStrategyForConnection | ( | unsigned int | connectionIdx | ) | const |
|
inlineoverridevirtual |
Implements IOutputSlot.
Definition at line 158 of file Layer.hpp.
Referenced by armnn::ApplyBackendOptimizations(), armnn::BuildAddMulAddTensorInfoLists(), OutputSlot::DisconnectAll(), OutputSlot::MoveAllConnections(), OutputSlot::operator==(), RefBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), OptimizeConsecutiveReshapesImpl::Run(), MoveTransposeUpImpl::Run(), MovePermuteUpImpl::Run(), SquashEqualSiblingsImpl< Comparable >::Run(), and AddBroadcastReshapeLayerImpl::Run().
|
inline |
|
inline |
Definition at line 139 of file Layer.hpp.
Referenced by OutputSlot::GetTensorInfo(), OutputSlot::IsTensorInfoSet(), OutputSlot::MoveAllConnections(), DeleteBroadcastToImpl::Run(), and OutputSlot::SetTensorInfo().
|
overridevirtual |
Implements IOutputSlot.
|
overridevirtual |
Implements IOutputSlot.
|
inline |
Definition at line 132 of file Layer.hpp.
Referenced by armnn::BuildAddMulAddTensorInfoLists(), OutputSlot::CalculateIndexOnOwner(), armnn::CalculateSlotOption(), armnn::CalculateSlotOptionForInput(), armnn::ConnectedToLayerType(), armnn::ConnectedToLayerWithNCHW(), DebugLayer::CreateWorkload(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), GenerateUniqueInputName(), LayerWithParameters< StridedSliceDescriptor >::GetConnectedConstantAsInputTensors(), OutputSlot::GetOwningLayerGuid(), Layer::GetPriority(), Graph::InsertNewLayer(), OutputSlot::IsTensorInfoSet(), RefBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), armnn::RemoveReshapeLayer(), MaxMinIntoBoundedReluImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstPermuteLayersToConstLayers::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), OptimizeInverseConversionsImpl::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), MoveTransposeUpImpl::Run(), MovePermuteUpImpl::Run(), AddBroadcastReshapeLayerImpl::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and Graph::SerializeToDot().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 208 of file Layer.cpp.
References Layer::GetGuid(), and OutputSlot::GetOwningLayer().
ITensorHandleFactory::FactoryId GetTensorHandleFactoryId | ( | ) | const |
Definition at line 218 of file Layer.cpp.
Referenced by Graph::AddCompatibilityLayers(), SplitterLayer::CreateTensorHandles(), ConcatLayer::CreateTensorHandles(), Layer::CreateTensorHandles(), LoadedNetwork::ImportInputs(), and LoadedNetwork::ImportOutputs().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 100 of file Layer.cpp.
References OutputSlot::GetOutputHandler(), and OutputHandler::GetTensorInfo().
Referenced by armnn::BuildAddMulAddTensorInfoLists(), armnn::CheckScaleSetOnQuantizedType(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), Layer::GetDataType(), armnn::GetLayerInOutDatatype(), LoadedNetwork::ImportInputs(), InputSlot::Insert(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), armnn::InsertDebugLayerAfter(), OutputSlot::MoveAllConnections(), RefBackend::OptimizeSubgraphView(), NeonBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), GpuFsaBackend::OptimizeSubgraphView(), armnn::RemoveReshapeLayer(), DeleteBroadcastToImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), AddBroadcastReshapeLayerImpl::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), Graph::SerializeToDot(), Layer::ValidateAndCopyShape(), ElementwiseBaseLayer::ValidateTensorShapesFromInputs(), QuantizeLayer::ValidateTensorShapesFromInputs(), ActivationLayer::ValidateTensorShapesFromInputs(), ChannelShuffleLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs(), RankLayer::ValidateTensorShapesFromInputs(), FillLayer::ValidateTensorShapesFromInputs(), ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs(), StackLayer::ValidateTensorShapesFromInputs(), InstanceNormalizationLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), TransposeLayer::ValidateTensorShapesFromInputs(), L2NormalizationLayer::ValidateTensorShapesFromInputs(), MemImportLayer::ValidateTensorShapesFromInputs(), MergeLayer::ValidateTensorShapesFromInputs(), AbsLayer::ValidateTensorShapesFromInputs(), DebugLayer::ValidateTensorShapesFromInputs(), NormalizationLayer::ValidateTensorShapesFromInputs(), BatchToSpaceNdLayer::ValidateTensorShapesFromInputs(), PermuteLayer::ValidateTensorShapesFromInputs(), Pooling2dLayer::ValidateTensorShapesFromInputs(), SoftmaxLayer::ValidateTensorShapesFromInputs(), DequantizeLayer::ValidateTensorShapesFromInputs(), Pooling3dLayer::ValidateTensorShapesFromInputs(), MemCopyLayer::ValidateTensorShapesFromInputs(), CastLayer::ValidateTensorShapesFromInputs(), ResizeLayer::ValidateTensorShapesFromInputs(), FakeQuantizationLayer::ValidateTensorShapesFromInputs(), RsqrtLayer::ValidateTensorShapesFromInputs(), ShapeLayer::ValidateTensorShapesFromInputs(), SliceLayer::ValidateTensorShapesFromInputs(), FloorLayer::ValidateTensorShapesFromInputs(), LogSoftmaxLayer::ValidateTensorShapesFromInputs(), MeanLayer::ValidateTensorShapesFromInputs(), PadLayer::ValidateTensorShapesFromInputs(), ReshapeLayer::ValidateTensorShapesFromInputs(), FullyConnectedLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), Convolution3dLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), BroadcastToLayer::ValidateTensorShapesFromInputs(), ScatterNdLayer::ValidateTensorShapesFromInputs(), GatherNdLayer::ValidateTensorShapesFromInputs(), ElementwiseBinaryLayer::ValidateTensorShapesFromInputs(), BatchMatMulLayer::ValidateTensorShapesFromInputs(), TileLayer::ValidateTensorShapesFromInputs(), GatherLayer::ValidateTensorShapesFromInputs(), ReduceLayer::ValidateTensorShapesFromInputs(), ElementwiseUnaryLayer::ValidateTensorShapesFromInputs(), ArgMinMaxLayer::ValidateTensorShapesFromInputs(), DetectionPostProcessLayer::ValidateTensorShapesFromInputs(), ReverseV2Layer::ValidateTensorShapesFromInputs(), StridedSliceLayer::ValidateTensorShapesFromInputs(), LogicalBinaryLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), SpaceToDepthLayer::ValidateTensorShapesFromInputs(), PreluLayer::ValidateTensorShapesFromInputs(), ComparisonLayer::ValidateTensorShapesFromInputs(), DepthToSpaceLayer::ValidateTensorShapesFromInputs(), SpaceToBatchNdLayer::ValidateTensorShapesFromInputs(), SplitterLayer::ValidateTensorShapesFromInputs(), ConcatLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), BatchNormalizationLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), and QLstmLayer::ValidateTensorShapesFromInputs().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 105 of file Layer.cpp.
References OutputSlot::GetOutputHandler(), OutputSlot::GetOwningLayer(), armnn::InferAndValidate, OutputHandler::IsTensorInfoSet(), and Layer::ValidateTensorShapesFromInputs().
Referenced by AddBroadcastReshapeLayerImpl::Run(), and OutputSlot::ValidateTensorShape().
void MoveAllConnections | ( | OutputSlot & | destination | ) |
Moves all connections to another OutputSlot.
Definition at line 156 of file Layer.cpp.
References OutputSlot::Connect(), OutputSlot::Disconnect(), OutputSlot::GetConnection(), OutputSlot::GetNumConnections(), OutputSlot::GetOutputHandler(), OutputSlot::GetTensorInfo(), OutputHandler::SetTensorInfo(), and armnn::Undefined.
Referenced by Graph::InsertNewLayer(), MaxMinIntoBoundedReluImpl::Run(), TransposeAsReshapeImpl::Run(), PermuteAsReshapeImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), DeleteBroadcastToImpl::Run(), OptimizeInverseConversionsImpl::Run(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
delete |
|
delete |
bool operator== | ( | const OutputSlot & | other | ) | const |
Definition at line 185 of file Layer.cpp.
References OutputSlot::GetConnection(), and OutputSlot::GetNumConnections().
void SetEdgeStrategy | ( | unsigned int | connectionIndex, |
EdgeStrategy | strategy | ||
) |
Definition at line 223 of file Layer.cpp.
Referenced by Graph::AddCompatibilityLayers(), InputSlot::Insert(), and armnn::SelectTensorHandleStrategy().
void SetTensorHandleFactory | ( | const ITensorHandleFactory::FactoryId & | id | ) |
Definition at line 213 of file Layer.cpp.
Referenced by Graph::AddCompatibilityLayers(), and armnn::SelectTensorHandleStrategy().
|
overridevirtual |
Implements IOutputSlot.
Definition at line 95 of file Layer.cpp.
References OutputSlot::GetOutputHandler(), and OutputHandler::SetTensorInfo().
Referenced by armnn::AttemptBackendAssignment(), armnn::BuildAddMulAddTensorInfoLists(), armnn::ChainReduceLayers(), armnn::CheckScaleSetOnQuantizedType(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), armnn::InsertDebugLayerAfter(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), AddBroadcastReshapeLayerImpl::Run(), and Layer::ValidateAndCopyShape().
bool ValidateTensorShape | ( | const TensorShape & | shape | ) | const |
Definition at line 114 of file Layer.cpp.
References TensorInfo::GetShape(), OutputHandler::GetTensorInfo(), and OutputSlot::IsTensorInfoSet().