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
We could add a specialized dispatch for pure transpose DimShuffle (without agument or drop dims). Or we could avoid Reshape altogether similar to #847. Although Numba doesn't yet have an overload for np.squeeze and np.expand_dims only accepts one axis at a time. Looking at the implementation it doesn't seem like it would be too hard to extend?
The text was updated successfully, but these errors were encountered:
Description
This happens because we (sometimes) introduce a copy here:
pytensor/pytensor/link/numba/dispatch/elemwise.py
Lines 691 to 692 in 19dafe4
We could add a specialized dispatch for pure transpose DimShuffle (without agument or drop dims). Or we could avoid
Reshape
altogether similar to #847. AlthoughNumba
doesn't yet have an overload fornp.squeeze
andnp.expand_dims
only accepts one axis at a time. Looking at the implementation it doesn't seem like it would be too hard to extend?The text was updated successfully, but these errors were encountered: