You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Length of pot_yhat cannot be determined
PyMC version information:
Python implementation: CPython
Python version : 3.10.12
IPython version : 8.16.1
pymc : 5.9.0
pytensor: 2.17.3
Compiler : Clang 15.0.7
OS : Darwin
Release : 22.6.0
Machine : x86_64
Processor : i386
CPU cores : 8
Architecture: 64bit
Context for the issue:
This could be reclassified as a 1) a feature request to allow model.debug() to work on models with Potentials, and 2) a bug to be most easily fixed by a try/catch and a user warning
The text was updated successfully, but these errors were encountered:
Describe the issue:
model.debug()
errors out when I have models that contain a Potential:ValueError: Length of {name_of_potential} cannot be determined
There seems to be something going on in https://github.com/pymc-devs/pytensor/blob/7bb18f3a3590d47132245b7868b3a4a6587a4667/pytensor/tensor/__init__.py#L59 which fails for Potentials. Possibly because this one has shape None ?
See more discussion here: https://discourse.pymc.io/t/possible-bug-model-debug-fn-logp-doesnt-work-with-potentials/13150/3
Reproduceable code example:
Error message:
PyMC version information:
Context for the issue:
This could be reclassified as a 1) a feature request to allow model.debug() to work on models with Potentials, and 2) a bug to be most easily fixed by a try/catch and a user warning
The text was updated successfully, but these errors were encountered: