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

GaussianEntropy consistency

parent 9a8ec556
Pipeline #103026 failed with stages
in 6 minutes and 42 seconds
......@@ -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):
return
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