tvm
|
A printer class to print pattern. More...
#include <dataflow_pattern.h>
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 FType & | vtable () |
Static Public Member Functions inherited from tvm::ReprPrinter | |
static FType & | vtable () |
Public Attributes | |
std::stringstream | string_stream {} |
std::unordered_map< DFPattern, std::pair< size_t, std::string >, ObjectPtrHash, ObjectPtrEqual > | memo_ {} |
std::vector< DFPattern > | 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. More... | |
Public Attributes inherited from tvm::ReprPrinter | |
std::ostream & | stream |
The output stream. More... | |
int | indent {0} |
The indentation level. More... | |
A printer class to print pattern.
using tvm::relay::DFPatternPrinter::FType = NodeFunctor<void(const ObjectRef&, DFPatternPrinter*)> |
|
inline |
void tvm::relay::DFPatternPrinter::Print | ( | const ObjectRef & | node | ) |
|
static |
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.
std::unordered_map<DFPattern, std::pair<size_t, std::string>, ObjectPtrHash, ObjectPtrEqual> tvm::relay::DFPatternPrinter::memo_ {} |
std::stringstream tvm::relay::DFPatternPrinter::string_stream {} |