tvm
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::relay::DFPatternPrinter Class Reference

A printer class to print pattern. More...

#include <dataflow_pattern.h>

Inheritance diagram for tvm::relay::DFPatternPrinter:
Collaboration diagram for tvm::relay::DFPatternPrinter:

Public Types

using FType = NodeFunctor< void(const ObjectRef &, DFPatternPrinter *)>
 
- Public Types inherited from tvm::ReprPrinter
using FType = NodeFunctor< void(const ObjectRef &, ReprPrinter *)>
 

Public Member Functions

 DFPatternPrinter (std::ostream &stream)
 
void Print (const ObjectRef &node)
 
- Public Member Functions inherited from tvm::ReprPrinter
 ReprPrinter (std::ostream &stream)
 
void Print (const ObjectRef &node)
 The node to be printed. More...
 
void PrintIndent ()
 Print indent to the stream. More...
 

Static Public Member Functions

static FTypevtable ()
 
- Static Public Member Functions inherited from tvm::ReprPrinter
static FTypevtable ()
 

Public Attributes

std::stringstream string_stream {}
 
std::unordered_map< DFPattern, std::pair< size_t, std::string >, ObjectPtrHash, ObjectPtrEqualmemo_ {}
 
std::vector< DFPatternauxiliary_patterns {}
 Subpatterns that are encountered more than once during printing. If a subpattern has already printed, only the pattern ID will be printed in the next encounter of the same pattern. This avoids printing a subpattern infinitely many times is the considered pattern involves recursion. More...
 
- Public Attributes inherited from tvm::ReprPrinter
std::ostream & stream
 The output stream. More...
 
int indent {0}
 The indentation level. More...
 

Detailed Description

A printer class to print pattern.

Member Typedef Documentation

◆ FType

Constructor & Destructor Documentation

◆ DFPatternPrinter()

tvm::relay::DFPatternPrinter::DFPatternPrinter ( std::ostream &  stream)
inline

Member Function Documentation

◆ Print()

void tvm::relay::DFPatternPrinter::Print ( const ObjectRef node)

◆ vtable()

static FType& tvm::relay::DFPatternPrinter::vtable ( )
static

Member Data Documentation

◆ auxiliary_patterns

std::vector<DFPattern> tvm::relay::DFPatternPrinter::auxiliary_patterns {}

Subpatterns that are encountered more than once during printing. If a subpattern has already printed, only the pattern ID will be printed in the next encounter of the same pattern. This avoids printing a subpattern infinitely many times is the considered pattern involves recursion.

◆ memo_

std::unordered_map<DFPattern, std::pair<size_t, std::string>, ObjectPtrHash, ObjectPtrEqual> tvm::relay::DFPatternPrinter::memo_ {}

◆ string_stream

std::stringstream tvm::relay::DFPatternPrinter::string_stream {}

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