[Edit] Trouble with "aesara.tensor.as_tensor_variable" when building custom fitting function

I have the same trouble, maybe someone has some insight in this question?