ONE - On-device Neural Engine
Loading...
Searching...
No Matches
locop::NodeDesc Struct Reference

#include <NodeSummary.h>

Data Structures

class  Comments
 Multi-line comments. More...
 

Public Types

enum class  State { Invalid , PartiallyKnown , Complete }
 

Public Member Functions

 NodeDesc ()=default
 
 NodeDesc (const OpName &opname)
 
const OpNameopname (void) const
 
void opname (const OpName &value)
 
const ArgDescargs (void) const
 
ArgDescargs (void)
 
const Commentscomments (void) const
 
Commentscomments (void)
 
const Statestate (void) const
 
void state (const State &s)
 

Detailed Description

Definition at line 50 of file NodeSummary.h.

Member Enumeration Documentation

◆ State

enum class locop::NodeDesc::State
strong
Enumerator
Invalid 
PartiallyKnown 
Complete 

Definition at line 71 of file NodeSummary.h.

72 {
73 // All the node descriptions are "Invalid" at the beginning.
74 //
75 // Any valid node description SHOULD NOT be at this state.
76 Invalid,
77 // This state means that the producer is **NOT** confident about the information that
78 // it generates.
79 //
80 // There may be some missing information.
82 // This state means that the producer is confident about the information that it
83 // generates.
85 };

Constructor & Destructor Documentation

◆ NodeDesc() [1/2]

locop::NodeDesc::NodeDesc ( )
default

◆ NodeDesc() [2/2]

locop::NodeDesc::NodeDesc ( const OpName opname)
inline

Definition at line 89 of file NodeSummary.h.

89{ this->opname(opname); }
const OpName & opname(void) const

References opname().

Member Function Documentation

◆ args() [1/2]

◆ args() [2/2]

◆ comments() [1/2]

Comments & locop::NodeDesc::comments ( void  )
inline

Definition at line 99 of file NodeSummary.h.

99{ return _comments; }

◆ comments() [2/2]

const Comments & locop::NodeDesc::comments ( void  ) const
inline

Definition at line 98 of file NodeSummary.h.

98{ return _comments; }

Referenced by locop::FormattedGraphImpl< Formatter::LinearV1 >::dump().

◆ opname() [1/2]

void locop::NodeDesc::opname ( const OpName value)

Definition at line 38 of file NodeSummary.cpp.

38{ _name = std::make_unique<std::string>(v); }

◆ opname() [2/2]

const std::string & locop::NodeDesc::opname ( void  ) const

Definition at line 31 of file NodeSummary.cpp.

32{
33 // _name SHOULD BE set before use
34 assert(_name != nullptr);
35 return *_name;
36}

Referenced by locop::GenericNodeSummaryBuilder::build(), and NodeDesc().

◆ state() [1/2]

void locop::NodeDesc::state ( const State s)
inline

Definition at line 102 of file NodeSummary.h.

102{ _state = s; }

◆ state() [2/2]

const State & locop::NodeDesc::state ( void  ) const
inline

Definition at line 101 of file NodeSummary.h.

101{ return _state; }

Referenced by locop::GenericNodeSummaryBuilder::build().


The documentation for this struct was generated from the following files: