tvm
Public Types | Public Member Functions | Public Attributes | List of all members
tvm::relax::PairCons Struct Reference

Constraint of a DFPattern edge (producer -> consumer) in graph-level matching. More...

#include <dataflow_pattern.h>

Collaboration diagram for tvm::relax::PairCons:

Public Types

enum  Type { kUsedBy , kOnlyUsedBy }
 Constraint types of the edge. More...
 

Public Member Functions

 PairCons (Type t, int index=-1)
 Construct a new PairCons object. More...
 
bool operator== (const PairCons &other) const
 

Public Attributes

enum tvm::relax::PairCons::Type type = kUsedBy
 
int index = -1
 

Detailed Description

Constraint of a DFPattern edge (producer -> consumer) in graph-level matching.

Member Enumeration Documentation

◆ Type

Constraint types of the edge.

Enumerator
kUsedBy 

producer ^ consumer

kOnlyUsedBy 

producer >> consumer

Constructor & Destructor Documentation

◆ PairCons()

tvm::relax::PairCons::PairCons ( Type  t,
int  index = -1 
)
inlineexplicit

Construct a new PairCons object.

Parameters
tThe constraint type
indexThe producer is called as the index'th argument of the consumer function.

Member Function Documentation

◆ operator==()

bool tvm::relax::PairCons::operator== ( const PairCons other) const
inline

Member Data Documentation

◆ index

int tvm::relax::PairCons::index = -1

The argument index of the producer in the consumer caller site

◆ type

enum tvm::relax::PairCons::Type tvm::relax::PairCons::type = kUsedBy

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