Commit e6a81c90 authored by Jakob Knollmüller's avatar Jakob Knollmüller
Browse files

GaussianEntropy consistency

parent 9a8ec556
......@@ -128,3 +128,11 @@ def test_bernoulli(field):
d = ift.Field(space, d)
energy = ift.BernoulliEnergy(d)
ift.extra.check_operator(energy, field, tol=1e-10)
def test_gaussian_entropy(field):
if isinstance(field.domain, ift.MultiDomain):
field = field.ptw("sigmoid")
energy = ift.library.variational_models.GaussianEntropy(field.domain)
ift.extra.check_operator(energy, field)
\ No newline at end of file
Supports Markdown
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