halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.88k stars 1.07k forks source link

When lerping between ints using a float weight, the float weight should get clamped to [0, 1] first. #6493

Open abadams opened 2 years ago

abadams commented 2 years ago

Currently the value is undefined, and it practice the implementation wraps.

mcourteaux commented 2 years ago

I'll link me thoughts post here. https://github.com/halide/Halide/pull/6480#issuecomment-995567254