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 a reshape is just adding/dropping dims, we could rewrite as reshape(expand_dims/squeeze(x, ...), shape), which would have led pytensor to remove the reshape altogether.
In general we want reshape to only be used when it actually does something that Dimshuffle does not, as for the eyes of PyTensor it involves a copy (it can't know at compile time, because it would need to know about strides)
The text was updated successfully, but these errors were encountered:
Description
This shows up in the following graph:
When a reshape is just adding/dropping dims, we could rewrite as
reshape(expand_dims/squeeze(x, ...), shape)
, which would have led pytensor to remove the reshape altogether.In general we want reshape to only be used when it actually does something that Dimshuffle does not, as for the eyes of PyTensor it involves a copy (it can't know at compile time, because it would need to know about strides)
The text was updated successfully, but these errors were encountered: