Compute Library
GenerateProposalsLayer Class Referencefinal

Generate Proposals Layer. More...

#include <Layers.h>

Collaboration diagram for GenerateProposalsLayer:

Public Member Functions

 GenerateProposalsLayer (SubStream &&ss_scores, SubStream &&ss_deltas, SubStream &&ss_anchors, GenerateProposalsInfo info)
 Construct a generate proposals 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

Generate Proposals Layer.

Definition at line 804 of file Layers.h.

Constructor & Destructor Documentation

◆ GenerateProposalsLayer()

GenerateProposalsLayer ( SubStream &&  ss_scores,
SubStream &&  ss_deltas,
SubStream &&  ss_anchors,
GenerateProposalsInfo  info 

Construct a generate proposals layer.

[in]ss_scoresGraph sub-stream for the scores.
[in]ss_deltasGraph sub-stream for the deltas.
[in]ss_anchorsGraph sub-stream for the anchors.
[in]infoGenerate Proposals operation information.

Definition at line 814 of file Layers.h.

815  : _ss_scores(std::move(ss_scores)), _ss_deltas(std::move(ss_deltas)), _ss_anchors(std::move(ss_anchors)), _info(info)
816  {
817  }
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)

Member Function Documentation

◆ create_layer()

NodeID create_layer ( IStream s)

Create layer and add to the given stream.

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

Implements ILayer.

Definition at line 825 of file Layers.h.

References GraphBuilder::add_generate_proposals_node(), IStream::graph(), IStream::hints(), ILayer::name(), and StreamHints::target_hint.

826  {
827  NodeParams common_params = { name(), s.hints().target_hint };
828  NodeIdxPair scores = { _ss_scores.tail_node(), 0 };
829  NodeIdxPair deltas = { _ss_deltas.tail_node(), 0 };
830  NodeIdxPair anchors = { _ss_anchors.tail_node(), 0 };
831  return GraphBuilder::add_generate_proposals_node(s.graph(), common_params, scores, deltas, anchors, _info);
832  }
static NodeID add_generate_proposals_node(Graph &g, NodeParams params, NodeIdxPair scores, NodeIdxPair deltas, NodeIdxPair anchors, GenerateProposalsInfo info)
Adds a generate proposals 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: