Skip to content

Commit

Permalink
Use compile_rv_inplace in SMC logp functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jul 23, 2021
1 parent 2ff9011 commit b13da02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymc3/smc/smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from scipy.stats import multivariate_normal

from pymc3.aesaraf import (
compile_rv_inplace,
floatX,
inputvars,
join_nonshared_inputs,
Expand Down Expand Up @@ -264,8 +265,8 @@ def logp_forw(point, out_vars, vars, shared):
"together with aesara.config.floatX == `float32`",
UserWarning,
)
f = aesara_function([inarray0], out_list[0], allow_input_downcast=True)
f = compile_rv_inplace([inarray0], out_list[0], allow_input_downcast=True)
else:
f = aesara_function([inarray0], out_list[0])
f = compile_rv_inplace([inarray0], out_list[0])
f.trust_input = True
return f

0 comments on commit b13da02

Please sign in to comment.