File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ def __call__(self, z):
271
271
sequences = z , n_steps = z .shape [0 ])[0 ].mean ()
272
272
else :
273
273
a = theano .clone (self .op .apply (self .tf ), {self .op .input : z }, strict = False )
274
- return tt . abs_ (a )
274
+ return self . op . T (a )
275
275
276
276
277
277
class Operator (object ):
@@ -291,6 +291,7 @@ class Operator(object):
291
291
RETURNS_LOSS = True
292
292
SUPPORT_AEVB = True
293
293
OBJECTIVE = ObjectiveFunction
294
+ T = pm .theanof .identity
294
295
295
296
def __init__ (self , approx ):
296
297
if not self .SUPPORT_AEVB and approx .local_vars :
@@ -334,9 +335,9 @@ def apply(self, f): # pragma: no cover
334
335
335
336
Parameters
336
337
----------
337
- f : function or None
338
+ f : TestFunction or None if not required
338
339
function that takes `z = self.input` and returns
339
- same dimension output
340
+ same dimensional output
340
341
341
342
Returns
342
343
-------
You can’t perform that action at this time.
0 commit comments