Replies: 1 comment 1 reply
-
Halide supports bounds queries. If you set the host and device pointers to null, and pass in an output buffer of the shape you want, Halide will populate the input buffer fields to tell you how much input is required. This lets you tile Halide pipelines from the outside without knowing anything about the algorithm. It also means that sometimes input buffer fields will be mutated, so the input buffer can't be const. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at for instance the example in the tutorial, the input buffers of AOT-generated functions are non-const:
Is there a reason why these functions need to be able to modify the buffers? It would be nice to call the functions with a const buffer.
Beta Was this translation helpful? Give feedback.
All reactions