|
| | PVarWithDataType (const DType &dtype) |
| |
| bool | Match_ (const T &value) const |
| |
| void | InitMatch_ () const |
| |
| bool | Match_ (const T &value) const |
| |
| bool | Match_ (const NodeRefType &value) const |
| |
| T | Eval () const |
| |
| template<typename NodeType > |
| bool | Match (const NodeType &value) const |
| | Check if value matches the current pattern.
|
| |
| template<typename NodeType , typename Condition > |
| bool | Match (const NodeType &value, Condition cond) const |
| | Check if value matches the current pattern.
|
| |
| const Derived & | derived () const |
| |
template<typename T, typename DType, typename = std::enable_if<std::is_base_of<T, PrimExpr>::value>>
class tvm::PVarWithDataType< T, DType, typename >
Pattern variable container with expr type check.
- Template Parameters
-
| T | the type of the hole. |
| DType | the Pattern type of dtype. |