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
When Einsum can't be optimized (because we don't know the static shapes) it stays as an OpFromGraph. We could replace it by a COp (as a cxx_only rewrite) in this case, that calls the numpy C function:
Description
When Einsum can't be optimized (because we don't know the static shapes) it stays as an OpFromGraph. We could replace it by a COp (as a cxx_only rewrite) in this case, that calls the numpy C function:
https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_EinsteinSum
pytensor/pytensor/tensor/rewriting/einsum.py
Lines 39 to 53 in f25a624
The text was updated successfully, but these errors were encountered: