tvm
Namespaces | Functions
pattern.h File Reference

Expression pattern detectors. More...

#include <tvm/ir/expr.h>
#include <tvm/tir/expr.h>
Include dependency graph for pattern.h:

Go to the source code of this file.

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::arith
 namespace of arithmetic analysis.
 

Functions

Array< PrimExpr > tvm::arith::DetectLinearEquation (const PrimExpr &e, const Array< tir::Var > &vars)
 Detect if e can be rewritten as e = sum_{i=0}^{n-1} var[i] * coeff[i] + coeff[n] Where coeff[i] and base are invariant of var[j] for all i and j. More...
 
Array< PrimExpr > tvm::arith::DetectClipBound (const PrimExpr &e, const Array< tir::Var > &vars)
 Detect if expression corresponds to clip bound of the vars. More...
 

Detailed Description

Expression pattern detectors.