Commit cc115946 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fixes

parent 60c6859d
from builtins import * from builtins import *
from ..minimization.energy import Energy from ..minimization.energy import Energy
from ..utilities import memo from ..utilities import memo, my_sum
class SampledKullbachLeiblerDivergence(Energy): class SampledKullbachLeiblerDivergence(Energy):
......
...@@ -130,6 +130,7 @@ class Energy(NiftyMetaBase()): ...@@ -130,6 +130,7 @@ class Energy(NiftyMetaBase()):
return None return None
def makeInvertible(self, controller, preconditioner=None): def makeInvertible(self, controller, preconditioner=None):
from .iteration_controller import IterationController
if not isinstance(controller, IterationController): if not isinstance(controller, IterationController):
raise TypeError raise TypeError
return CurvatureInversionEnabler(self, controller, preconditioner) return CurvatureInversionEnabler(self, controller, preconditioner)
......
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