Skip to content

Commit

Permalink
Prevent Model from turning on test value computations
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Mar 23, 2021
1 parent 80d189f commit 00dcfad
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pymc3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,7 @@ def __new__(cls, *args, **kwargs):
instance._parent = kwargs.get("model")
else:
instance._parent = cls.get_context(error_if_none=False)
aesara_config = kwargs.get("aesara_config", None)
if aesara_config is None or "compute_test_value" not in aesara_config:
aesara_config = {"compute_test_value": "ignore"}
instance._aesara_config = aesara_config
instance._aesara_config = kwargs.get("aesara_config", {})
return instance

def __init__(self, name="", model=None, aesara_config=None, coords=None, check_bounds=True):
Expand Down

0 comments on commit 00dcfad

Please sign in to comment.