Compute Library
 21.11
IStream Class Referenceabstract

Stream interface. More...

#include <IStream.h>

Public Member Functions

virtual ~IStream ()=default
 
virtual void add_layer (ILayer &layer)=0
 Adds a layer to the stream. More...
 
virtual Graphgraph ()=0
 Returns the underlying graph. More...
 
virtual const Graphgraph () const =0
 Returns the underlying graph. More...
 
NodeID tail_node ()
 Returns the tail node of the Stream. More...
 
StreamHintshints ()
 Returns the stream hints that are currently used. More...
 
void forward_tail (NodeID nid)
 Forwards tail of stream to a given nid. More...
 

Detailed Description

Stream interface.

Definition at line 42 of file IStream.h.

Constructor & Destructor Documentation

◆ ~IStream()

virtual ~IStream ( )
virtualdefault

Member Function Documentation

◆ add_layer()

virtual void add_layer ( ILayer layer)
pure virtual

Adds a layer to the stream.

Parameters
[in]layerLayer to add

Implemented in Stream, and SubStream.

Referenced by arm_compute::graph::frontend::operator<<().

◆ forward_tail()

void forward_tail ( NodeID  nid)
inline

Forwards tail of stream to a given nid.

Parameters
[in]nidNodeID of the updated tail node

Definition at line 81 of file IStream.h.

References arm_compute::graph::EmptyNodeID, and arm_compute::graph::NullTensorID.

82  {
83  _tail_node = (nid != NullTensorID) ? nid : _tail_node;
84  }
constexpr TensorID NullTensorID
Constant NodeID specifying an equivalent of null node.
Definition: Types.h:74

◆ graph() [1/2]

virtual Graph& graph ( )
pure virtual

Returns the underlying graph.

Returns
Underlying graph

Implemented in Stream, and SubStream.

Referenced by InputLayer::create_layer(), ConstantLayer::create_layer(), OutputLayer::create_layer(), ActivationLayer::create_layer(), ArgMinMaxLayer::create_layer(), BatchNormalizationLayer::create_layer(), BoundingBoxTransformLayer::create_layer(), ChannelShuffleLayer::create_layer(), ConcatLayer::create_layer(), ConvolutionLayer::create_layer(), DeconvolutionLayer::create_layer(), DepthwiseConvolutionLayer::create_layer(), DepthToSpaceLayer::create_layer(), DequantizationLayer::create_layer(), DetectionOutputLayer::create_layer(), DetectionPostProcessLayer::create_layer(), DummyLayer::create_layer(), EltwiseLayer::create_layer(), FlattenLayer::create_layer(), FullyConnectedLayer::create_layer(), GenerateProposalsLayer::create_layer(), L2NormalizeLayer::create_layer(), NormalizationLayer::create_layer(), NormalizePlanarYUVLayer::create_layer(), PadLayer::create_layer(), PermuteLayer::create_layer(), PoolingLayer::create_layer(), PReluLayer::create_layer(), PrintLayer::create_layer(), PriorBoxLayer::create_layer(), QuantizationLayer::create_layer(), ReductionLayer::create_layer(), ReorgLayer::create_layer(), ReshapeLayer::create_layer(), ResizeLayer::create_layer(), ROIAlignLayer::create_layer(), ScaleLayer::create_layer(), SliceLayer::create_layer(), SoftmaxLayer::create_layer(), StackLayer::create_layer(), StridedSliceLayer::create_layer(), YOLOLayer::create_layer(), and SubStream::graph().

◆ graph() [2/2]

virtual const Graph& graph ( ) const
pure virtual

Returns the underlying graph.

Returns
Underlying graph

Implemented in Stream, and SubStream.

◆ hints()

StreamHints& hints ( )
inline

Returns the stream hints that are currently used.

Returns
Stream hints

Definition at line 73 of file IStream.h.

Referenced by InputLayer::create_layer(), ConstantLayer::create_layer(), OutputLayer::create_layer(), ActivationLayer::create_layer(), ArgMinMaxLayer::create_layer(), BatchNormalizationLayer::create_layer(), BoundingBoxTransformLayer::create_layer(), ChannelShuffleLayer::create_layer(), ConcatLayer::create_layer(), ConvolutionLayer::create_layer(), DeconvolutionLayer::create_layer(), DepthwiseConvolutionLayer::create_layer(), DepthToSpaceLayer::create_layer(), DequantizationLayer::create_layer(), DetectionOutputLayer::create_layer(), DetectionPostProcessLayer::create_layer(), DummyLayer::create_layer(), EltwiseLayer::create_layer(), FlattenLayer::create_layer(), FullyConnectedLayer::create_layer(), GenerateProposalsLayer::create_layer(), L2NormalizeLayer::create_layer(), NormalizationLayer::create_layer(), NormalizePlanarYUVLayer::create_layer(), PadLayer::create_layer(), PermuteLayer::create_layer(), PoolingLayer::create_layer(), PReluLayer::create_layer(), PrintLayer::create_layer(), PriorBoxLayer::create_layer(), QuantizationLayer::create_layer(), ReductionLayer::create_layer(), ReorgLayer::create_layer(), ReshapeLayer::create_layer(), ResizeLayer::create_layer(), ROIAlignLayer::create_layer(), ScaleLayer::create_layer(), SliceLayer::create_layer(), SoftmaxLayer::create_layer(), StackLayer::create_layer(), StridedSliceLayer::create_layer(), YOLOLayer::create_layer(), arm_compute::graph::frontend::operator<<(), and SubStream::SubStream().

74  {
75  return _hints;
76  }

◆ tail_node()


The documentation for this class was generated from the following file: