Skip to content

Commit

Permalink
FIX: track_gradients boolean bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
janfb committed Apr 8, 2024
1 parent c40e4b1 commit ab67839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbi/samplers/mcmc/pymc_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(
self._device = device

# create PyMC model object
track_gradients = step in (pymc.NUTS, pymc.HamiltonianMC)
track_gradients = step in ("nuts", "hmc")
self._model = pymc.Model()
potential = PyMCPotential(
potential_fn, track_gradients=track_gradients, device=device
Expand Down

0 comments on commit ab67839

Please sign in to comment.