24.08
|
#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(), DebugLayer::CreateWorkload(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), GenerateUniqueInputName(), 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(), MaxMinIntoBoundedReluImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstPermuteLayersToConstLayers::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), OptimizeInverseConversionsImpl::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), MoveTransposeUpImpl::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), MovePermuteUpImpl::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(), ConvertConstantToTosaOperator(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), GenerateUniqueOutputName(), GetTosaMapping(), Graph::InsertNewLayer(), armnn::RemoveReshapeLayer(), MaxMinIntoBoundedReluImpl::Run(), DeleteBroadcastToImpl::Run(), OptimizeConsecutiveReshapesImpl::Run(), ConvertConstPermuteLayersToConstLayers::Run(), PermuteAndBatchToSpaceAsDepthToSpaceImpl< PermuteType >::Run(), ConvertConstDequantisationLayersToConstLayersImpl::Run(), OptimizeInverseConversionsImpl::Run(), OptimizeInversePermutesImpl< PermuteType >::Run(), MoveTransposeUpImpl::Run(), MovePermuteUpImpl::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(), GetTosaMapping(), 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 614 of file Layer.cpp.
References InputSlot::GetConnection(), and IOutputSlot::GetTensorInfo().
Referenced by armnn::BuildAddMulAddTensorInfoLists(), armnn::ConnectedToLayerType(), ConvertConstantToTosaOperator(), 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(), ShapeLayer::ValidateTensorShapesFromInputs(), InstanceNormalizationLayer::ValidateTensorShapesFromInputs(), SwitchLayer::ValidateTensorShapesFromInputs(), L2NormalizationLayer::ValidateTensorShapesFromInputs(), TransposeLayer::ValidateTensorShapesFromInputs(), AbsLayer::ValidateTensorShapesFromInputs(), DebugLayer::ValidateTensorShapesFromInputs(), CastLayer::ValidateTensorShapesFromInputs(), MemCopyLayer::ValidateTensorShapesFromInputs(), MemImportLayer::ValidateTensorShapesFromInputs(), MergeLayer::ValidateTensorShapesFromInputs(), Pooling3dLayer::ValidateTensorShapesFromInputs(), NormalizationLayer::ValidateTensorShapesFromInputs(), DequantizeLayer::ValidateTensorShapesFromInputs(), PermuteLayer::ValidateTensorShapesFromInputs(), Pooling2dLayer::ValidateTensorShapesFromInputs(), ConvertFp16ToFp32Layer::ValidateTensorShapesFromInputs(), FakeQuantizationLayer::ValidateTensorShapesFromInputs(), ResizeLayer::ValidateTensorShapesFromInputs(), BatchToSpaceNdLayer::ValidateTensorShapesFromInputs(), RsqrtLayer::ValidateTensorShapesFromInputs(), FloorLayer::ValidateTensorShapesFromInputs(), SoftmaxLayer::ValidateTensorShapesFromInputs(), StackLayer::ValidateTensorShapesFromInputs(), LogSoftmaxLayer::ValidateTensorShapesFromInputs(), MeanLayer::ValidateTensorShapesFromInputs(), PadLayer::ValidateTensorShapesFromInputs(), ReshapeLayer::ValidateTensorShapesFromInputs(), Convolution3dLayer::ValidateTensorShapesFromInputs(), DepthwiseConvolution2dLayer::ValidateTensorShapesFromInputs(), FullyConnectedLayer::ValidateTensorShapesFromInputs(), Convolution2dLayer::ValidateTensorShapesFromInputs(), GatherNdLayer::ValidateTensorShapesFromInputs(), ScatterNdLayer::ValidateTensorShapesFromInputs(), TileLayer::ValidateTensorShapesFromInputs(), BatchMatMulLayer::ValidateTensorShapesFromInputs(), ElementwiseBinaryLayer::ValidateTensorShapesFromInputs(), StridedSliceLayer::ValidateTensorShapesFromInputs(), GatherLayer::ValidateTensorShapesFromInputs(), ElementwiseUnaryLayer::ValidateTensorShapesFromInputs(), ReduceLayer::ValidateTensorShapesFromInputs(), ReverseV2Layer::ValidateTensorShapesFromInputs(), DetectionPostProcessLayer::ValidateTensorShapesFromInputs(), ArgMinMaxLayer::ValidateTensorShapesFromInputs(), ComparisonLayer::ValidateTensorShapesFromInputs(), SpaceToBatchNdLayer::ValidateTensorShapesFromInputs(), TransposeConvolution2dLayer::ValidateTensorShapesFromInputs(), SpaceToDepthLayer::ValidateTensorShapesFromInputs(), LogicalBinaryLayer::ValidateTensorShapesFromInputs(), PreluLayer::ValidateTensorShapesFromInputs(), DepthToSpaceLayer::ValidateTensorShapesFromInputs(), LstmLayer::ValidateTensorShapesFromInputs(), UnidirectionalSequenceLstmLayer::ValidateTensorShapesFromInputs(), ConcatLayer::ValidateTensorShapesFromInputs(), BatchNormalizationLayer::ValidateTensorShapesFromInputs(), QuantizedLstmLayer::ValidateTensorShapesFromInputs(), and QLstmLayer::ValidateTensorShapesFromInputs().
void Insert | ( | Layer & | layer | ) |
Definition at line 53 of file Layer.cpp.
References 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 626 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 609 of file Layer.cpp.
Referenced by Graph::Graph(), and armnn::RemoveReshapeLayer().