-
Hi all, I have a expr like this: (2 - ((min(Output1_extent_0 - (Output1_s0_v0_v2 *17), 17) + 31)/32)) after simplify, expr change to: ((max((Output1_s0_v0_v2 *17) - Output1_extent_0, -17)/32) + 2) Set when expr_original = expr_simplify = when expr_original = expr_simplify = the values are not equal. So, is there a bug of Halide simplify? Or, How to express the expr to get the right result? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Halide defines division to round towards negative infinity, so (-7)/32 = -1 |
Beta Was this translation helpful? Give feedback.
Halide defines division to round towards negative infinity, so (-7)/32 = -1