The error you mention is likely coming from numpy or scipy, not from pytensor. You cannot use numpy functions on symbolic pytensor variables (or random variables, which are the same thing).
The error you mention is likely coming from numpy or scipy, not from pytensor. You cannot use numpy functions on symbolic pytensor variables (or random variables, which are the same thing).