Commit 116a16c6 authored by Reimar H Leike's avatar Reimar H Leike
Browse files

fixup

parent 4231c07b
Pipeline #62451 passed with stages
in 7 minutes and 1 second
...@@ -280,7 +280,7 @@ class StudentTEnergy(EnergyOperator): ...@@ -280,7 +280,7 @@ class StudentTEnergy(EnergyOperator):
return Field.scalar(v) return Field.scalar(v)
if not x.want_metric: if not x.want_metric:
return v return v
met = ScalingOperator(self.domain, (self._theta+1)/(self._theta+3)) met = ScalingOperator((self._theta+1)/(self._theta+3), self.domain)
met = SandwichOperator.make(x.jac, met) met = SandwichOperator.make(x.jac, met)
return v.add_metric(met) return v.add_metric(met)
......
...@@ -35,7 +35,7 @@ class Log1p(Operator): ...@@ -35,7 +35,7 @@ class Log1p(Operator):
lin = isinstance(x, Linearization) lin = isinstance(x, Linearization)
xval = x.val if lin else x xval = x.val if lin else x
xlval = xval.local_data xlval = xval.local_data
res = from_local_data(x.domain, log1p(xlval)) res = from_local_data(xval.domain, log1p(xlval))
if not lin: if not lin:
return res return res
jac = DiagonalOperator(1/(1+xval)) jac = DiagonalOperator(1/(1+xval))
......
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