Compute Library
ChannelShuffleLayer Class Referencefinal

Channel Shuffle Layer. More...

#include <Layers.h>

Collaboration diagram for ChannelShuffleLayer:

Public Member Functions

 ChannelShuffleLayer (unsigned int num_groups)
 Construct a Channel Shuffle 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

Channel Shuffle Layer.

Definition at line 266 of file Layers.h.

Constructor & Destructor Documentation

◆ ChannelShuffleLayer()

ChannelShuffleLayer ( unsigned int  num_groups)

Construct a Channel Shuffle layer.

[in]num_groupsNumber of groups

Definition at line 273 of file Layers.h.

274  : _num_groups(num_groups)
275  {
276  }
const unsigned int num_groups
Definition: Im2Col.cpp:153

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

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

279  {
280  NodeParams common_params = { name(), s.hints().target_hint };
281  NodeIdxPair input = { s.tail_node(), 0 };
282  return GraphBuilder::add_channel_shuffle_node(s.graph(), common_params, input, _num_groups);
283  }
static NodeID add_channel_shuffle_node(Graph &g, NodeParams params, NodeIdxPair input, unsigned int num_groups)
Adds an channel shuffle 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: