Compute Library
 21.11
ILayer Class Referenceabstract

ILayer interface. More...

#include <ILayer.h>

Public Member Functions

virtual ~ILayer ()=default
 Default destructor. More...
 
virtual NodeID create_layer (IStream &s)=0
 Create layer and add to the given stream. More...
 
ILayerset_name (std::string name)
 Sets the name of the layer. More...
 
const std::string & name () const
 Layer name accessor. More...
 

Detailed Description

ILayer interface.

Definition at line 37 of file ILayer.h.

Constructor & Destructor Documentation

◆ ~ILayer()

virtual ~ILayer ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ create_layer()

◆ name()

const std::string& name ( ) const
inline

Layer name accessor.

Returns
Returns the name of the layer

Definition at line 64 of file ILayer.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(), and ILayer::set_name().

65  {
66  return _name;
67  }

◆ set_name()

ILayer& set_name ( std::string  name)
inline

Sets the name of the layer.

Parameters
[in]nameName of the layer
Returns
The layer object

Definition at line 55 of file ILayer.h.

References ILayer::name().

56  {
57  _name = name;
58  return *this;
59  }
const std::string & name() const
Layer name accessor.
Definition: ILayer.h:64

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