A wrapper around ExprFunctor which functionally updates the AST.
More...
#include <pattern_functor.h>
A wrapper around ExprFunctor which functionally updates the AST.
ExprMutator uses memoization and self return in order to amortize the cost of using functional updates.
◆ Mutate()
◆ VisitConstructor()
Used to visit the vars inside of patterns.
◆ VisitPattern_() [1/4]
◆ VisitPattern_() [2/4]
◆ VisitPattern_() [3/4]
◆ VisitPattern_() [4/4]
◆ VisitType()
virtual Type tvm::relay::PatternMutator::VisitType |
( |
const Type & |
t | ) |
|
|
virtual |
Used to visit the types inside of patterns.
Can be overloaded to transform the types in arbitrary ways, one way would be to define a sub-class of type visitor for types which transform them appropriately.
◆ VisitVar()
virtual Var tvm::relay::PatternMutator::VisitVar |
( |
const Var & |
v | ) |
|
|
virtual |
Used to visit the vars inside of patterns.
The documentation for this class was generated from the following file: