Maybe the documentation of Potential clarifies your question? pymc.Potential — PyMC 5.3.0 documentation