tvm_tirx.tirx.analysis.detect_clip_bound#
- tvm_tirx.tirx.analysis.detect_clip_bound(expr, var_list)#
Detect if expression corresponds to clip bound of the vars
- Parameters:
expr (Expr) – The expression to be matched.
var_list (List[tvm_tirx.ir.Var]) – A list of variables.
- Returns:
coeff (List[Expr]) – concat([min_value[i], max_value[i]] for i, v in enumerate(var_list)) An empty list if the match failed.