Commit 464a2aad authored by Jakob Knollmueller's avatar Jakob Knollmueller
Browse files

bugfix

parent 542bf762
Pipeline #30677 failed with stages
in 43 seconds
......@@ -56,8 +56,8 @@ class SamplingEnabler(EndomorphicOperator):
try:
return self._op.draw_sample(from_inverse, dtype)
except NotImplementedError:
s = self._prior.draw_sample()
sp = self._prior.inverse_times(s)
s = self._prior.draw_sample(from_inverse=True)
sp = self._prior(s)
nj = self._likelihood.draw_sample()
energy = QuadraticEnergy(s, self._op, sp + nj,
_grad=self._likelihood(s) - nj)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment