Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

halide.imageio needs to support arbitrary bufferviews #7137

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

steven-johnson
Copy link
Contributor

As written, the helper code assumed that everything passed in was a numpy array of some sort; this meant that passing hl.Buffer didn't work. Restructured so that we only assume that the objects passed in satisfies the Python buffer protocol, so this should now work very generically.

As written, the helper code assumed that everything passed in was a numpy array of some sort; this meant that passing hl.Buffer didn't work. Restructured so that we only assume that the objects passed in satisfies the Python buffer protocol, so this should now work very generically.
@steven-johnson steven-johnson added the backport me This change should be backported to release versions label Oct 31, 2022
@steven-johnson steven-johnson added the python Issues related to Halide/Python interop label Oct 31, 2022
@steven-johnson steven-johnson merged commit e6066ac into main Oct 31, 2022
@steven-johnson steven-johnson deleted the srj/python-imageio branch October 31, 2022 20:07
steven-johnson added a commit that referenced this pull request Oct 31, 2022
* halide.imageio needs to support arbitrary bufferviews

As written, the helper code assumed that everything passed in was a numpy array of some sort; this meant that passing hl.Buffer didn't work. Restructured so that we only assume that the objects passed in satisfies the Python buffer protocol, so this should now work very generically.

* Update imageio.py

* More fixes
steven-johnson added a commit that referenced this pull request Nov 1, 2022
* Rewrite python_bindings/apps (#7133)
* Apply 'Black' formatter to py/test/correctness and py/test/generators (#7135)
* halide.imageio needs to support arbitrary bufferviews (#7137)
* GitHub Workflows security hardening (#7136)
* Give pip.yml permission to read packages (#7139)
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* halide.imageio needs to support arbitrary bufferviews

As written, the helper code assumed that everything passed in was a numpy array of some sort; this meant that passing hl.Buffer didn't work. Restructured so that we only assume that the objects passed in satisfies the Python buffer protocol, so this should now work very generically.

* Update imageio.py

* More fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport me This change should be backported to release versions python Issues related to Halide/Python interop
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants