tvm
Classes | Namespaces | Functions
dataflow_pattern.h File Reference

A pattern language for matching dataflow properties. More...

#include <tvm/relay/expr.h>
#include <tvm/relay/type.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
Include dependency graph for dataflow_pattern.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::relay::DFPatternNode
 Base type of all dataflow patterns. More...
 
class  tvm::relay::DFPattern
 Managed reference to dataflow patterns. More...
 
class  tvm::relay::ExprPatternNode
 Pattern for Relay Expression. More...
 
class  tvm::relay::ExprPattern
 A pattern which matches a literal expression. More...
 
class  tvm::relay::VarPatternNode
 Container for Var. More...
 
class  tvm::relay::VarPattern
 
class  tvm::relay::ConstantPatternNode
 Container for Constant. More...
 
class  tvm::relay::ConstantPattern
 
class  tvm::relay::CallPatternNode
 CallPattern container. More...
 
class  tvm::relay::CallPattern
 
class  tvm::relay::FunctionPatternNode
 Relay Function container. More...
 
class  tvm::relay::FunctionPattern
 Managed reference to FunctionNode. More...
 
class  tvm::relay::LetPatternNode
 A binding of a sub-network. More...
 
class  tvm::relay::LetPattern
 Let binding that binds a local var. More...
 
class  tvm::relay::TuplePatternNode
 Tuple container. More...
 
class  tvm::relay::TuplePattern
 
class  tvm::relay::TupleGetItemPatternNode
 
class  tvm::relay::IfPatternNode
 
class  tvm::relay::IfPattern
 
class  tvm::relay::TupleGetItemPattern
 
class  tvm::relay::AltPatternNode
 Pattern for Alternate Expressions. More...
 
class  tvm::relay::AltPattern
 A pattern which matches either of two patterns. More...
 
class  tvm::relay::WildcardPatternNode
 Wildcard Pattern. More...
 
class  tvm::relay::WildcardPattern
 A pattern which matches anything. More...
 
class  tvm::relay::TypePatternNode
 Pattern for Types. More...
 
class  tvm::relay::TypePattern
 A pattern which matches a type in another pattern. More...
 
class  tvm::relay::ShapePatternNode
 Pattern for Shapes. More...
 
class  tvm::relay::ShapePattern
 A pattern which matches a type in another pattern. More...
 
class  tvm::relay::DataTypePatternNode
 Pattern for Types. More...
 
class  tvm::relay::DataTypePattern
 A pattern which matches a type in another pattern. More...
 
class  tvm::relay::AttrPatternNode
 Pattern for Attributes. More...
 
class  tvm::relay::AttrPattern
 A pattern which matches attributes in another pattern. More...
 
class  tvm::relay::DominatorPatternNode
 Dominated Graph Pattern Pattern for fuzzy subgraphs where all outputs of the parent are used finally by the child, and every operation between the parent and the child matches the path. More...
 
class  tvm::relay::DominatorPattern
 A pattern which matches a variable length dominator path. More...
 
class  tvm::relay::DFPatternPrinter
 A printer class to print pattern. More...
 

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::relay
 Relay: a high level functional IR for TVM.
 

Functions

DFPattern tvm::relay::IsVar (const String &name)
 Syntatic Sugar for creating a VarPattern with a name. More...
 
DFPattern tvm::relay::IsConstant ()
 Syntatic Sugar for creating a ConstantPattern. More...
 
DFPattern tvm::relay::IsWildcard ()
 Syntatic Sugar for creating a WildcardPattern. More...
 
DFPattern tvm::relay::IsExpr (const Expr &expr)
 Syntatic Sugar for creating a ExprPattern. More...
 
DFPattern tvm::relay::IsOp (const String &op_name)
 Syntatic Sugar for creating a ExprPattern base on an Op. More...
 
DFPattern tvm::relay::IsTuple (const Array< DFPattern > &fields)
 Syntatic Sugar for creating a TuplePattern. More...
 
DFPattern tvm::relay::IsTupleGetItem (const DFPattern tuple, int index=-1)
 Syntatic Sugar for creating a TupleGetItemPattern. More...
 
std::ostream & tvm::relay::operator<< (std::ostream &os, const DFPattern &n)
 
String tvm::relay::PrettyPrint (const DFPattern &pattern)
 

Detailed Description

A pattern language for matching dataflow properties.