Variable Lag and slicing

@ricardoV94 Thank you very much for the explanation and the link. I am trying to run the changepoint marginalization example locally, and here’s an error that I am seeing:

NotImplementedError: Cannot convert Elemwise{mul,no_inplace}.0 to a tensor variable.

here are the relevan lines from my conda list:

aesara                    2.8.12                   pypi_0    pypi
numpy                     1.24.3          py311hb8f3215_0    conda-forge
pymc                      5.3.1                    pypi_0    pypi
pymc-experimental         0+untagged.107.g2e8505a          pypi_0    pypi
pytensor                  2.11.2                   pypi_0    pypi
python                    3.11.3          h1456518_0_cpython    conda-forge
scikit-learn              1.2.2                    pypi_0    pypi
scipy                     1.10.1          py311h0bcca16_1    conda-forge