Describe the issue:
pt.signal.convolve1d always produces (None,) output shape, even when both input shapes and the mode are fully known at graph construction time.
Reproducable code example:
import pytensor.tensor as pt
x = pt.vector('x', shape=(61,))
k = pt.vector('k', shape=(10,))
conv = pt.signal.convolve1d(x, k, mode='full')
print(conv.type.shape) # (None,) — expected (70,)
bx = pt.matrix('bx', shape=(4, 61))
bk = pt.matrix('bk', shape=(4, 10))
bconv = pt.signal.convolve1d(bx, bk, mode='full')
print(bconv.type.shape) # (4, None) — expected (4, 70)
Error message:
PyTensor version information:
- PyTensor version: 2.38.2 (also confirmed on
main at c31183051)
- Python version: 3.12
- Operating system: macOS (ARM64)
- How did you install PyTensor: pixi (conda-forge)
Describe the issue:
pt.signal.convolve1dalways produces(None,)output shape, even when both input shapes and the mode are fully known at graph construction time.Reproducable code example:
Error message:
PyTensor version information:
mainatc31183051)