File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -141,17 +141,17 @@ class CircularContinuous(Continuous):
141
141
142
142
143
143
@_default_transform .register (PositiveContinuous )
144
- def pos_cont_transform (op ):
144
+ def pos_cont_transform (op , rv ):
145
145
return transforms .log
146
146
147
147
148
148
@_default_transform .register (UnitContinuous )
149
- def unit_cont_transform (op ):
149
+ def unit_cont_transform (op , rv ):
150
150
return transforms .logodds
151
151
152
152
153
153
@_default_transform .register (CircularContinuous )
154
- def circ_cont_transform (op ):
154
+ def circ_cont_transform (op , rv ):
155
155
return transforms .circular
156
156
157
157
Original file line number Diff line number Diff line change 25
25
Simplex ,
26
26
)
27
27
from aesara .graph import Op
28
+ from aesara .tensor import TensorVariable
28
29
29
30
__all__ = [
30
31
"RVTransform" ,
42
43
43
44
44
45
@singledispatch
45
- def _default_transform (op : Op ):
46
+ def _default_transform (op : Op , rv : TensorVariable ):
46
47
"""Return default transform for a given Distribution `Op`"""
47
48
return None
48
49
Original file line number Diff line number Diff line change @@ -1422,7 +1422,7 @@ def create_value_var(
1422
1422
# Make the value variable a transformed value variable,
1423
1423
# if there's an applicable transform
1424
1424
if transform is UNSET and rv_var .owner :
1425
- transform = _default_transform (rv_var .owner .op )
1425
+ transform = _default_transform (rv_var .owner .op , rv_var )
1426
1426
1427
1427
if transform is not None and transform is not UNSET :
1428
1428
value_var .tag .transform = transform
You can’t perform that action at this time.
0 commit comments