-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Makes PyCallable dimension reversing logic consistent with that of PythonExtensionGen #8931
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
base: main
Are you sure you want to change the base?
Conversation
| brew install clang-format lld llvm flatbuffers wabt python pybind11 doxygen eigen libpng libjpeg-turbo openblas | ||
| ``` | ||
|
|
||
| The `llvm` package includes `clang`, `clang-format`, and `lld`, too. To ensure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Homebrew pulled these out long ago.
|
|
||
| ```shell | ||
| $ pipx install cmake | ||
| pipx install cmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the drive-by. My vs code auto-formatted this entire file - but for the better I think.
| return Halide::Runtime::Buffer<T, Dims, InClassDimStorage>(t, info.ptr, (int)info.ndim, dims); | ||
| } | ||
|
|
||
| template<typename T = void, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer used.
a450b21 to
0fffb5b
Compare
|
I'll work on how |
| @@ -1,4 +1,5 @@ | |||
| import halide as hl | |||
| import numpy as np | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we ok with this requirement for the test?
When a generator emits a Python extension, the pipeline only accepts buffers that are C or F contiguous (PythonExtensionGen.cpp), throwing an exception if it's neither.
In contrast, a callable constructed from
generator.compile_to_callable()constructs a pipeline that always reverses the dimensions of input buffers. It also non-contiguous buffers.This PR changes the latter to be consistent with the former. Callables constructed from
generator.compile_to_callable()now: