Compute Library
DepthToSpaceLayer Class Referencefinal

DepthToSpace Layer. More...

#include <Layers.h>

Collaboration diagram for DepthToSpaceLayer:

Public Member Functions

 DepthToSpaceLayer (int32_t block_shape)
 Construct an DepthToSpace 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

DepthToSpace Layer.

Definition at line 536 of file Layers.h.

Constructor & Destructor Documentation

◆ DepthToSpaceLayer()

DepthToSpaceLayer ( int32_t  block_shape)

Construct an DepthToSpace layer.

[in]block_shapeBlock size to rearranged

Definition at line 543 of file Layers.h.

544  : _block_shape(block_shape)
545  {
546  }

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

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

549  {
550  NodeParams common_params = { name(), s.hints().target_hint };
551  NodeIdxPair input = { s.tail_node(), 0 };
552  return GraphBuilder::add_depth_to_space_node(s.graph(), common_params, input, _block_shape);
553  }
static NodeID add_depth_to_space_node(Graph &g, NodeParams params, NodeIdxPair input, int32_t block_shape)
Adds an depth to space 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: