Compute Library
ResizeLayer Class Referencefinal

Resize Layer. More...

#include <Layers.h>

Collaboration diagram for ResizeLayer:

Public Member Functions

 ResizeLayer (InterpolationPolicy policy, float width_scale, float height_scale)
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

Resize Layer.

Definition at line 1214 of file Layers.h.

Constructor & Destructor Documentation

◆ ResizeLayer()

ResizeLayer ( InterpolationPolicy  policy,
float  width_scale,
float  height_scale 

Definition at line 1217 of file Layers.h.

1218  : _policy(policy), _width_scale(width_scale), _height_scale(height_scale)
1219  {
1220  }

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 1222 of file Layers.h.

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

1223  {
1224  NodeParams common_params = { name(), s.hints().target_hint };
1225  NodeIdxPair input = { s.tail_node(), 0 };
1226  return GraphBuilder::add_resize_node(s.graph(), common_params, input, _policy, _width_scale, _height_scale);
1227  }
static NodeID add_resize_node(Graph &g, NodeParams params, NodeIdxPair input, InterpolationPolicy policy, float width_scale, float height_scale)
Adds a resize layer node to the graph.
const std::string & name() const
Layer name accessor.
Definition: ILayer.h:64

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