Skip to content

Commit

Permalink
Temporarily disable trust_input
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jun 16, 2021
1 parent 22da46a commit 9ebfb4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pymc3/smc/smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,13 @@ def logp_forw(point, out_vars, vars, shared):
shared: List
containing :class:`aesara.tensor.Tensor` for depended shared data
"""

out_list, inarray0 = join_nonshared_inputs(point, out_vars, vars, shared)
f = aesara_function([inarray0], out_list[0])
f.trust_input = True
# TODO: Figure out how to safely accept float32 (floatX) input when there are
# discrete variables of int64 dtype in `vars`.
# See https://github.com/pymc-devs/pymc3/pull/4769#issuecomment-861494080
# f.trust_input = False
return f


Expand Down

0 comments on commit 9ebfb4e

Please sign in to comment.