pytensor
pytensor copied to clipboard
Implement `infer_shape` automatically from `gufunc_signature`
Description
For Ops with a gufunc_signature, we can automate infer_shape implementation:
https://github.com/pymc-devs/pytensor/blob/e036caf934e177c72053a40ffbac258c9c26d5ac/pytensor/tensor/slinalg.py#L28-L53
We actually already do it for the Blockwise Wrapper:
https://github.com/pymc-devs/pytensor/blob/3cdcfde4155b5aa8d4ac29fd7f07fe21f776a712/pytensor/tensor/blockwise.py#L208-L210