tvm
Public Member Functions | Protected Attributes | List of all members
tvm::relay::DFPatternVisitor Class Reference

A simple visitor wrapper around DFPatternFunctor. Recursively visit the content. More...

#include <dataflow_pattern_functor.h>

Inheritance diagram for tvm::relay::DFPatternVisitor:
Collaboration diagram for tvm::relay::DFPatternVisitor:

Public Member Functions

void VisitDFPattern (const DFPattern &pattern) override
 
void VisitDFPattern_ (const AltPatternNode *op) override
 
void VisitDFPattern_ (const AttrPatternNode *op) override
 
void VisitDFPattern_ (const CallPatternNode *op) override
 
void VisitDFPattern_ (const ConstantPatternNode *op) override
 
void VisitDFPattern_ (const DataTypePatternNode *op) override
 
void VisitDFPattern_ (const DominatorPatternNode *op) override
 
void VisitDFPattern_ (const ExprPatternNode *op) override
 
void VisitDFPattern_ (const FunctionPatternNode *op) override
 
void VisitDFPattern_ (const IfPatternNode *op) override
 
void VisitDFPattern_ (const LetPatternNode *op) override
 
void VisitDFPattern_ (const ShapePatternNode *op) override
 
void VisitDFPattern_ (const TupleGetItemPatternNode *op) override
 
void VisitDFPattern_ (const TuplePatternNode *op) override
 
void VisitDFPattern_ (const TypePatternNode *op) override
 
void VisitDFPattern_ (const VarPatternNode *op) override
 
void VisitDFPattern_ (const WildcardPatternNode *op) override
 

Protected Attributes

std::unordered_set< const Object * > visited_
 

Detailed Description

A simple visitor wrapper around DFPatternFunctor. Recursively visit the content.

DFPatternVisitor treats the Pattern as dataflow graph,and only visit each Expr node once.

Member Function Documentation

◆ VisitDFPattern()

void tvm::relay::DFPatternVisitor::VisitDFPattern ( const DFPattern pattern)
override

◆ VisitDFPattern_() [1/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const AltPatternNode op)
override

◆ VisitDFPattern_() [2/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const AttrPatternNode op)
override

◆ VisitDFPattern_() [3/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const CallPatternNode op)
override

◆ VisitDFPattern_() [4/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const ConstantPatternNode op)
override

◆ VisitDFPattern_() [5/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const DataTypePatternNode op)
override

◆ VisitDFPattern_() [6/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const DominatorPatternNode op)
override

◆ VisitDFPattern_() [7/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const ExprPatternNode op)
override

◆ VisitDFPattern_() [8/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const FunctionPatternNode op)
override

◆ VisitDFPattern_() [9/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const IfPatternNode op)
override

◆ VisitDFPattern_() [10/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const LetPatternNode op)
override

◆ VisitDFPattern_() [11/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const ShapePatternNode op)
override

◆ VisitDFPattern_() [12/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const TupleGetItemPatternNode op)
override

◆ VisitDFPattern_() [13/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const TuplePatternNode op)
override

◆ VisitDFPattern_() [14/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const TypePatternNode op)
override

◆ VisitDFPattern_() [15/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const VarPatternNode op)
override

◆ VisitDFPattern_() [16/16]

void tvm::relay::DFPatternVisitor::VisitDFPattern_ ( const WildcardPatternNode op)
override

Member Data Documentation

◆ visited_

std::unordered_set<const Object*> tvm::relay::DFPatternVisitor::visited_
protected

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