ONE - On-device Neural Engine
Loading...
Searching...
No Matches
mpqsolver::test::models::SimpleGraph Class Referenceabstract

base class of simple graphs used for testing More...

#include <TestHelper.h>

Collaboration diagram for mpqsolver::test::models::SimpleGraph:

Public Member Functions

 SimpleGraph ()
 
void init ()
 
virtual ~SimpleGraph ()=default
 
void transfer_to (luci::Module *module)
 

Data Fields

std::unique_ptr< loco::Graph_g
 
luci::CircleInput_input = nullptr
 
luci::CircleOutput_output = nullptr
 
uint32_t _channel_size = 16
 
uint32_t _width = 4
 
uint32_t _height = 4
 

Protected Member Functions

virtual loco::NodeinsertGraphBody (loco::Node *input)=0
 
virtual void initInput (loco::Node *)
 

Detailed Description

base class of simple graphs used for testing

Definition at line 36 of file TestHelper.h.

Constructor & Destructor Documentation

◆ SimpleGraph()

mpqsolver::test::models::SimpleGraph::SimpleGraph ( )
inline

Definition at line 39 of file TestHelper.h.

39: _g(loco::make_graph()) {}
std::unique_ptr< loco::Graph > _g
Definition TestHelper.h:52
std::unique_ptr< Graph > make_graph(void)
Definition Graph.cpp:131

◆ ~SimpleGraph()

virtual mpqsolver::test::models::SimpleGraph::~SimpleGraph ( )
virtualdefault

Member Function Documentation

◆ init()

void mpqsolver::test::models::SimpleGraph::init ( )

◆ initInput()

virtual void mpqsolver::test::models::SimpleGraph::initInput ( loco::Node )
inlineprotectedvirtual

Definition at line 49 of file TestHelper.h.

49{};

◆ insertGraphBody()

virtual loco::Node * mpqsolver::test::models::SimpleGraph::insertGraphBody ( loco::Node input)
protectedpure virtual

◆ transfer_to()

void mpqsolver::test::models::SimpleGraph::transfer_to ( luci::Module module)

Field Documentation

◆ _channel_size

uint32_t mpqsolver::test::models::SimpleGraph::_channel_size = 16

Definition at line 55 of file TestHelper.h.

◆ _g

std::unique_ptr<loco::Graph> mpqsolver::test::models::SimpleGraph::_g

Definition at line 52 of file TestHelper.h.

◆ _height

uint32_t mpqsolver::test::models::SimpleGraph::_height = 4

Definition at line 57 of file TestHelper.h.

◆ _input

luci::CircleInput* mpqsolver::test::models::SimpleGraph::_input = nullptr

Definition at line 53 of file TestHelper.h.

◆ _output

luci::CircleOutput* mpqsolver::test::models::SimpleGraph::_output = nullptr

Definition at line 54 of file TestHelper.h.

◆ _width

uint32_t mpqsolver::test::models::SimpleGraph::_width = 4

Definition at line 56 of file TestHelper.h.


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