24.02
|
#include <Layer.hpp>
Public Member Functions | |
InputSlot (Layer &owner, unsigned int slotIndex) | |
~InputSlot () | |
Layer & | GetOwningLayer () const |
unsigned int | GetSlotIndex () const override |
const OutputSlot * | GetConnectedOutputSlot () const |
OutputSlot * | GetConnectedOutputSlot () |
const IConnectableLayer & | GetOwningIConnectableLayer () const override |
IConnectableLayer & | GetOwningIConnectableLayer () override |
void | SetConnection (OutputSlot *source) |
Links the slot to an output slot or breaks an existing link if passing nullptr. More... | |
void | Insert (Layer &layer) |
const IOutputSlot * | GetConnection () const override |
IOutputSlot * | GetConnection () override |
void | SetTensorInfo (const TensorInfo tensorInfo) override |
Sets the TensorInfo for this InputSlot. More... | |
const TensorInfo & | GetTensorInfo () const override |
Gets the TensorInfo for this InputSlot. More... | |
bool | IsTensorInfoSet () const override |
Returns true if this InputSlot either has an overridden TensorInfo for this InputSlot that was set through a call to SetTensorInfo() or is Connected to an OutputSlot that has its TensorInfo set. More... | |
bool | IsTensorInfoOverridden () const override |
Returns true if this InputSlot has an overridden TensorInfo that was set through a call to SetTensorInfo(). More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IInputSlot | |
~IInputSlot () | |
Not user deletable. More... | |
|
inline |
|
inline |
|
inline |
Definition at line 56 of file Layer.hpp.
Referenced by armnn::BuildAddMulAddTensorInfoLists(), armnn::ConnectedToLayerType(), armnn::ConnectedToLayerWithNCHW(), ConvertActivationToTosaOperator(), ConvertAvgPool2DIgnoreValueToTosaOperator(), ConvertConcatToTosaOperator(), ConvertConv2dToTosaOperator(), ConvertElementwiseBinaryToTosaOperator(), ConvertElementwiseUnaryOperator(), ConvertPooling2DToTosaOperator(), ConvertQuantizeToTosaOperator(), ConvertReshapeToTosaOperator(), ConvertResizeToTosaOperator(), ConvertSliceToTosaOperator(), ConvertTransposeConv2dToTosaOperator(), ConvertTransposeToTosaOperator(), DebugLayer::CreateWorkload(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), LayerWithParameters< StridedSliceDescriptor >::GetConnectedConstantAsInputTensors(), InputSlot::GetConnection(), armnn::GetLayerInOutDatatype(), LoadedNetwork::ImportOutputs(), InputSlot::Insert(), armnn::InsertConvertFp16ToFp32LayersBefore(), armnn::InsertConvertFp32ToFp16LayersAfter(), armnn::InsertDebugLayerAfter(), Graph::InsertNewLayer(), RefBackend::OptimizeSubgraphView(), NeonBackend::OptimizeSubgraphView(), ClBackend::OptimizeSubgraphView(), GpuFsaBackend::OptimizeSubgraphView(), armnn::RemoveReshapeLayer(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstPermuteLayersToConstLayers::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), OptimizeInverseConversionsImpl::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), MoveTransposeUpImpl::Run(), MovePermuteUpImpl::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), SquashEqualSiblingsImpl< Comparable >::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and AddBroadcastReshapeLayerImpl::Run().
|
inlineoverridevirtual |
Implements IInputSlot.
Definition at line 219 of file Layer.hpp.
References InputSlot::GetConnectedOutputSlot().
Referenced by LayerWithParameters< StridedSliceDescriptor >::GetConnectedConstantAsInputTensors(), InputSlot::GetTensorInfo(), and InputSlot::IsTensorInfoSet().
|
overridevirtual |
Implements IInputSlot.
|
overridevirtual |
Implements IInputSlot.
|
overridevirtual |
Implements IInputSlot.
|
inline |
Definition at line 53 of file Layer.hpp.
Referenced by Graph::AddCompatibilityLayers(), armnn::BuildAddMulAddTensorInfoLists(), armnn::ConnectedToLayerType(), armnn::ConnectedToLayerWithNCHW(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), GenerateUniqueOutputName(), Graph::InsertNewLayer(), armnn::RemoveReshapeLayer(), DeleteBroadcastToImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstPermuteLayersToConstLayers::Run(), OptimizeInverseConversionsImpl::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), MovePermuteUpImpl::Run(), MoveTransposeUpImpl::Run(), SquashEqualSiblingsImpl< Comparable >::Run(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), FoldPadIntoConvolution2dImpl::Run(), and FoldPadIntoDepthwiseConvolution2dImpl::Run().
|
inlineoverridevirtual |
Implements IInputSlot.
Definition at line 54 of file Layer.hpp.
Referenced by Graph::AddCompatibilityLayers(), and armnn::RemoveReshapeLayer().
|
overridevirtual |
Gets the TensorInfo for this InputSlot.
If the InputSlot's TensorInfo has not been set then this will get the TensorInfo from the Connected TensorInfo.
Implements IInputSlot.
Definition at line 592 of file Layer.cpp.
References InputSlot::GetConnection(), and IOutputSlot::GetTensorInfo().
Referenced by armnn::BuildAddMulAddTensorInfoLists(), armnn::ConnectedToLayerType(), LayerWithParameters< StridedSliceDescriptor >::GetConnectedConstantAsInputTensors(), Layer::GetDataType(), LoadedNetwork::ImportOutputs(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), Convolution3dLayer::SerializeLayerParameters(), DepthwiseConvolution2dLayer::SerializeLayerParameters(), Convolution2dLayer::SerializeLayerParameters(), ElementwiseBaseLayer::ValidateTensorShapesFromInputs(), QuantizeLayer::ValidateTensorShapesFromInputs(), ChannelShuffleLayer::ValidateTensorShapesFromInputs(), ActivationLayer::ValidateTensorShapesFromInputs(), ConvertFp32ToFp16Layer::ValidateTensorShapesFromInputs(), FillLayer::ValidateTensorShapesFromInputs(), SliceLayer::ValidateTensorShapesFromInputs(), InstanceNormalizationLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), TransposeLayer::ValidateTensorShapesFromInputs(), AbsLayer::ValidateTensorShapesFromInputs(), L2NormalizationLayer::ValidateTensorShapesFromInputs(), CastLayer::ValidateTensorShapesFromInputs(), DebugLayer::ValidateTensorShapesFromInputs(), MemCopyLayer::ValidateTensorShapesFromInputs(), MemImportLayer::ValidateTensorShapesFromInputs(), MergeLayer::ValidateTensorShapesFromInputs(), Pooling3dLayer::ValidateTensorShapesFromInputs(), NormalizationLayer::ValidateTensorShapesFromInputs(), DequantizeLayer::ValidateTensorShapesFromInputs(), PermuteLayer::ValidateTensorShapesFromInputs(), Pooling2dLayer::ValidateTensorShapesFromInputs(), SoftmaxLayer::ValidateTensorShapesFromInputs(), ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs(), FakeQuantizationLayer::ValidateTensorShapesFromInputs(), ResizeLayer::ValidateTensorShapesFromInputs(), BatchToSpaceNdLayer::ValidateTensorShapesFromInputs(), RsqrtLayer::ValidateTensorShapesFromInputs(), ShapeLayer::ValidateTensorShapesFromInputs(), FloorLayer::ValidateTensorShapesFromInputs(), StackLayer::ValidateTensorShapesFromInputs(), LogSoftmaxLayer::ValidateTensorShapesFromInputs(), MeanLayer::ValidateTensorShapesFromInputs(), PadLayer::ValidateTensorShapesFromInputs(), ReshapeLayer::ValidateTensorShapesFromInputs(), Convolution3dLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), FullyConnectedLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), GatherNdLayer::ValidateTensorShapesFromInputs(), TileLayer::ValidateTensorShapesFromInputs(), BatchMatMulLayer::ValidateTensorShapesFromInputs(), ElementwiseBinaryLayer::ValidateTensorShapesFromInputs(), GatherLayer::ValidateTensorShapesFromInputs(), ReverseV2Layer::ValidateTensorShapesFromInputs(), ElementwiseUnaryLayer::ValidateTensorShapesFromInputs(), ReduceLayer::ValidateTensorShapesFromInputs(), DetectionPostProcessLayer::ValidateTensorShapesFromInputs(), StridedSliceLayer::ValidateTensorShapesFromInputs(), ArgMinMaxLayer::ValidateTensorShapesFromInputs(), SpaceToBatchNdLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), LogicalBinaryLayer::ValidateTensorShapesFromInputs(), DepthToSpaceLayer::ValidateTensorShapesFromInputs(), PreluLayer::ValidateTensorShapesFromInputs(), ComparisonLayer::ValidateTensorShapesFromInputs(), SpaceToDepthLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), ConcatLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), BatchNormalizationLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), and QLstmLayer::ValidateTensorShapesFromInputs().
void Insert | ( | Layer & | layer | ) |
Definition at line 48 of file Layer.cpp.
References ARMNN_ASSERT, armnn::AssertNumberOfInputSlots(), OutputSlot::Connect(), OutputSlot::Disconnect(), InputSlot::GetConnectedOutputSlot(), Layer::GetInputSlot(), Layer::GetNumOutputSlots(), Layer::GetOutputHandler(), Layer::GetOutputSlot(), OutputSlot::GetTensorInfo(), OutputSlot::SetEdgeStrategy(), OutputHandler::SetTensorInfo(), and armnn::Undefined.
Referenced by Graph::InsertNewLayer().
|
overridevirtual |
Returns true if this InputSlot has an overridden TensorInfo that was set through a call to SetTensorInfo().
Implements IInputSlot.
|
overridevirtual |
Returns true if this InputSlot either has an overridden TensorInfo for this InputSlot that was set through a call to SetTensorInfo() or is Connected to an OutputSlot that has its TensorInfo set.
Implements IInputSlot.
Definition at line 604 of file Layer.cpp.
References InputSlot::GetConnection(), and IOutputSlot::IsTensorInfoSet().
|
inline |
Links the slot to an output slot or breaks an existing link if passing nullptr.
Definition at line 63 of file Layer.hpp.
Referenced by OutputSlot::Connect(), and OutputSlot::Disconnect().
|
overridevirtual |
Sets the TensorInfo for this InputSlot.
This can be used to override the TensorInfo and if set will be returned instead of the TensorInfo for the Connected OutputSlot.
Implements IInputSlot.
Definition at line 587 of file Layer.cpp.
Referenced by Graph::Graph(), and armnn::RemoveReshapeLayer().