Compute Library
 22.05
BoundingBoxTransformLayer Class Referencefinal

Bounding Box Transform Layer. More...

#include <Layers.h>

Collaboration diagram for BoundingBoxTransformLayer:
[legend]

Public Member Functions

 BoundingBoxTransformLayer (SubStream &&sub_stream_input, SubStream &&sub_stream_deltas, BoundingBoxTransformInfo info)
 Construct a bounding box transform layer. More...
 
NodeID create_layer (IStream &s) override
 Create layer and add to the given stream. More...
 
- Public Member Functions inherited from ILayer
virtual ~ILayer ()=default
 Default destructor. More...
 
ILayerset_name (std::string name)
 Sets the name of the layer. More...
 
const std::string & name () const
 Layer name accessor. More...
 

Detailed Description

Bounding Box Transform Layer.

Definition at line 231 of file Layers.h.

Constructor & Destructor Documentation

◆ BoundingBoxTransformLayer()

BoundingBoxTransformLayer ( SubStream &&  sub_stream_input,
SubStream &&  sub_stream_deltas,
BoundingBoxTransformInfo  info 
)
inline

Construct a bounding box transform layer.

Parameters
[in]sub_stream_inputGraph sub-stream for the input
[in]sub_stream_deltasGraph sub-stream for the deltas
[in]infoContains BoundingBox operation information described in BoundingBoxTransformInfo.

Definition at line 240 of file Layers.h.

241  : _ss_input(sub_stream_input), _ss_deltas(sub_stream_deltas), _bbox_info(info)
242  {
243  }
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)

Member Function Documentation

◆ create_layer()

NodeID create_layer ( IStream s)
inlineoverridevirtual

Create layer and add to the given stream.

Parameters
[in]sStream to add layer to.
Returns
ID of the created node.

Implements ILayer.

Definition at line 251 of file Layers.h.

References GraphBuilder::add_bounding_box_transform_node(), IStream::graph(), IStream::hints(), arm_compute::test::validation::input, ILayer::name(), and StreamHints::target_hint.

252  {
253  NodeParams common_params = { name(), s.hints().target_hint };
254  NodeIdxPair input = { _ss_input.tail_node(), 0 };
255  NodeIdxPair deltas = { _ss_deltas.tail_node(), 0 };
256  return GraphBuilder::add_bounding_box_transform_node(s.graph(), common_params, input, deltas, _bbox_info);
257  }
static NodeID add_bounding_box_transform_node(Graph &g, NodeParams params, NodeIdxPair input, NodeIdxPair deltas, BoundingBoxTransformInfo info)
Adds a bounding box transform layer node to the graph.
NodeID tail_node()
Returns the tail node of the Stream.
Definition: IStream.h:65
const std::string & name() const
Layer name accessor.
Definition: ILayer.h:64

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