24 #ifndef TVM_ARITH_PATTERN_H_ 25 #define TVM_ARITH_PATTERN_H_ 50 Array<PrimExpr>
DetectClipBound(
const PrimExpr& e,
const Array<tir::Var>& vars);
54 #endif // TVM_ARITH_PATTERN_H_
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
Array< PrimExpr > 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 b...
Array< PrimExpr > DetectClipBound(const PrimExpr &e, const Array< tir::Var > &vars)
Detect if expression corresponds to clip bound of the vars.