You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the C implementation attempts to change the dimensions and strides itself, and it probably makes some strong assumptions about them in the process. Since broadcasting changes that information, those assumptions are probably bad.
Instead, we should be able to use PyArray_Transpose and PyArray_Newshape in the same way the Python implementation does.
Here's a simple example:
Here's the same result, just computed more directly via the generated C thunk:
The text was updated successfully, but these errors were encountered: