Skip to content

Add Python bindings for serialization#8718

Merged
alexreinking merged 9 commits intomainfrom
python/serialization
Aug 15, 2025
Merged

Add Python bindings for serialization#8718
alexreinking merged 9 commits intomainfrom
python/serialization

Conversation

@alexreinking
Copy link
Copy Markdown
Member

Also adds a helpful PathLike type that we can maybe use elsewhere we expect to receive/return filesystem paths. I didn't go down the rabbit hole of using std::filesystem since IIRC it's broken before C++20.

Fixes #8716

Comment thread python_bindings/src/halide/halide_/PyHalide.h Outdated
Comment thread python_bindings/src/halide/halide_/PySerialization.cpp
Comment thread python_bindings/test/correctness/serialization.py Outdated
Comment thread python_bindings/test/correctness/serialization.py Outdated
Comment thread python_bindings/test/correctness/serialization.py Outdated
Copy link
Copy Markdown
Contributor

@shoaibkamil shoaibkamil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits, but LGTM!

@alexreinking alexreinking added the python Issues related to Halide/Python interop label Aug 13, 2025
@alexreinking alexreinking merged commit 8003b51 into main Aug 15, 2025
5 of 19 checks passed
@alexreinking alexreinking deleted the python/serialization branch August 15, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Issues related to Halide/Python interop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Python bindings for serialization

3 participants