Makes PyCallable dimension reversing logic consistent with that of PythonExtensionGen#8931
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.
Homebrew pulled these out long ago.
|
|
||
| ```shell | ||
| $ pipx install cmake | ||
| pipx install cmake |
There was a problem hiding this comment.
Sorry for the drive-by. My vs code auto-formatted this entire file - but for the better I think.
There was a problem hiding this comment.
After the changes we've made to CI and Python dependency management in #8942, we should revert this file and consider improvements in a separate PR.
a450b21 to
0fffb5b
Compare
|
I'll work on how |
|
@alexreinking PTAL? |
alexreinking
left a comment
There was a problem hiding this comment.
The code changes look good. Please drop the doc changes from this; we need a bigger update as a separate work item.
|
@alexreinking Reverted doc changes. |
Unfortunately, |
alexreinking
left a comment
There was a problem hiding this comment.
I made the tweaks I asked for. LGTM pending green (which is actually a possibility now!)
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: