ONE - On-device Neural Engine
Loading...
Searching...
No Matches
GraphTestcase< GraphCode::FeatureCodec > Class Referencefinal

#include <GraphTestcase.h>

Collaboration diagram for GraphTestcase< GraphCode::FeatureCodec >:

Public Member Functions

 GraphTestcase ()
 
loco::Graphgraph ()
 

Data Fields

loco::Pullpull_node = nullptr
 
loco::FeatureEncodeencode_node = nullptr
 
loco::FeatureDecodedecode_node = nullptr
 
loco::Pushpush_node = nullptr
 

Detailed Description

Definition at line 170 of file GraphTestcase.h.

Constructor & Destructor Documentation

◆ GraphTestcase()

Definition at line 173 of file GraphTestcase.h.

174 {
175 using namespace loco;
176
178
179 perm[FeatureAxis::Count] = 0;
180 perm[FeatureAxis::Height] = 1;
181 perm[FeatureAxis::Width] = 2;
182 perm[FeatureAxis::Depth] = 3;
183
184 // Create a sample network
185 _graph = make_graph();
186
187 auto graph_builder = make_graph_builder(_graph.get());
188
189 pull_node = graph_builder->push<InputLayer>()->name("input")->node();
190 encode_node = graph_builder->push<FeatureEncodeLayer>()->perm(perm)->node();
191 decode_node = graph_builder->push<FeatureDecodeLayer>()->perm(perm)->node();
192 push_node = graph_builder->push<OutputLayer>()->name("output")->node();
193 }
std::unique_ptr< Graph > make_graph(void)
Definition Graph.cpp:131

Member Function Documentation

◆ graph()

Field Documentation

◆ decode_node

Definition at line 200 of file GraphTestcase.h.

◆ encode_node

Definition at line 199 of file GraphTestcase.h.

◆ pull_node

Definition at line 198 of file GraphTestcase.h.

◆ push_node

Definition at line 201 of file GraphTestcase.h.


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