File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 32
32
from pytensor .tensor import (
33
33
abs ,
34
34
and_ ,
35
+ arccos ,
36
+ arccosh ,
37
+ arcsin ,
38
+ arcsinh ,
39
+ arctan ,
40
+ arctanh ,
35
41
broadcast_to ,
36
42
ceil ,
37
43
clip ,
38
44
concatenate ,
39
45
constant ,
40
46
cos ,
41
47
cosh ,
48
+ cumprod ,
49
+ cumsum ,
42
50
dot ,
43
51
eq ,
44
52
erf ,
59
67
logsumexp ,
60
68
lt ,
61
69
matmul ,
70
+ max ,
62
71
maximum ,
63
72
mean ,
73
+ min ,
64
74
minimum ,
65
75
neq ,
66
76
ones ,
94
104
__all__ = [
95
105
"abs" ,
96
106
"and_" ,
107
+ "arccos" ,
108
+ "arccosh" ,
109
+ "arcsin" ,
110
+ "arcsinh" ,
111
+ "arctan" ,
112
+ "arctanh" ,
97
113
"broadcast_to" ,
98
114
"ceil" ,
99
115
"clip" ,
100
116
"concatenate" ,
101
117
"constant" ,
102
118
"cos" ,
103
119
"cosh" ,
120
+ "cumprod" ,
121
+ "cumsum" ,
104
122
"dot" ,
105
123
"eq" ,
106
124
"erf" ,
121
139
"logsumexp" ,
122
140
"lt" ,
123
141
"matmul" ,
142
+ "max" ,
124
143
"maximum" ,
125
144
"mean" ,
145
+ "min" ,
126
146
"minimum" ,
127
147
"neq" ,
128
148
"ones" ,
129
149
"ones_like" ,
130
150
"or_" ,
131
151
"prod" ,
152
+ "round" ,
132
153
"sgn" ,
133
154
"sigmoid" ,
134
155
"sin" ,
@@ -258,7 +279,7 @@ def kron_diag(*diags):
258
279
return reduce (flat_outer , diags )
259
280
260
281
261
- def tround (* args , ** kwargs ):
282
+ def round (* args , ** kwargs ):
262
283
"""
263
284
Temporary function to silence round warning in PyTensor. Please remove
264
285
when the warning disappears.
@@ -267,6 +288,11 @@ def tround(*args, **kwargs):
267
288
return pt .round (* args , ** kwargs )
268
289
269
290
291
+ def tround (* args , ** kwargs ):
292
+ warnings .warn ("tround is deprecated. Use round instead." )
293
+ return round (* args , ** kwargs )
294
+
295
+
270
296
def logdiffexp (a , b ):
271
297
"""log(exp(a) - exp(b))"""
272
298
return a + pt .log1mexp (b - a )
You can’t perform that action at this time.
0 commit comments