tvm
|
Expression pattern detectors. More...
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... | |
Expression pattern detectors.