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 49 of file NodeSummary.h.

Member Enumeration Documentation

◆ State

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

Definition at line 70 of file NodeSummary.h.

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

Constructor & Destructor Documentation

◆ NodeDesc() [1/2]

locop::NodeDesc::NodeDesc ( )
default

◆ NodeDesc() [2/2]

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

Definition at line 88 of file NodeSummary.h.

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

References opname().

Member Function Documentation

◆ args() [1/2]

ArgDesc & locop::NodeDesc::args ( void  )
inline

Definition at line 95 of file NodeSummary.h.

95{ return _args; }

Referenced by Command.Command::add_noarg_option_if_valid_arg(), and Command.Command::add_option_with_valid_args().

◆ args() [2/2]

const ArgDesc & locop::NodeDesc::args ( void  ) const
inline

◆ comments() [1/2]

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

Definition at line 98 of file NodeSummary.h.

98{ return _comments; }

◆ comments() [2/2]

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

Definition at line 97 of file NodeSummary.h.

97{ 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 101 of file NodeSummary.h.

101{ _state = s; }

◆ state() [2/2]

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

Definition at line 100 of file NodeSummary.h.

100{ return _state; }

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


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