### Describe the issue: ``pt.arange`` allocates a vector of length that depends on input values but the output shape has dynamic type ### Reproducable code example: ```python assert pt.arange(10).type.shape == (10, ) ``` ### Error message: ```shell (None, ) != (10,) ``` ### PyTensor version information: '2.16.1' ### Context for the issue: used here https://github.com/pymc-labs/pymc-marketing/blob/main/pymc_marketing/mmm/transformers.py#L102C50-L102C59