halide / Halide

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

Fix incorrect output in Python tutorial, lesson 5 #8331

Closed qqaatw closed 5 days ago

qqaatw commented 5 days ago

This is column-major so y should vary faster than x.

The equivalent c++ code:

https://github.com/halide/Halide/blob/a6f5ca4b34d78362ea703dcbaad5bd527efd9fb3/tutorial/lesson_05_scheduling_1.cpp#L97-L101

abadams commented 5 days ago

Nice catch, thanks