onnxslim 0.1.75__tar.gz → 0.1.77__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {onnxslim-0.1.75/onnxslim.egg-info → onnxslim-0.1.77}/PKG-INFO +2 -2
- onnxslim-0.1.77/VERSION +1 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/_sympy/numbers.py +38 -38
- onnxslim-0.1.77/onnxslim/version.py +1 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77/onnxslim.egg-info}/PKG-INFO +2 -2
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim.egg-info/requires.txt +1 -1
- {onnxslim-0.1.75 → onnxslim-0.1.77}/setup.py +1 -1
- onnxslim-0.1.75/VERSION +0 -1
- onnxslim-0.1.75/onnxslim/version.py +0 -1
- {onnxslim-0.1.75 → onnxslim-0.1.77}/LICENSE +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/MANIFEST.in +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/README.md +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/__main__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/argparser.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/cli/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/cli/_main.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/optimization/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/optimization/dead_node_elimination.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/optimization/subexpression_elimination.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/optimization/weight_tying.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/elimination/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/elimination/concat.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/elimination/reshape.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/elimination/reshape_as.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/elimination/slice.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/elimination/unsqueeze.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/concat_reshape.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/convadd.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/convbn.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/convmul.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/gelu.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/gemm.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/padconv.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/fusion/reduce.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/core/pattern/registry.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/misc/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/misc/tabulate.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/_sympy/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/_sympy/functions.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/_sympy/printers.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/_sympy/solve.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/_sympy/symbol.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/exporters/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/exporters/base_exporter.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/exporters/onnx_exporter.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/graph_pattern/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/graph_pattern/graph_pattern.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/importers/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/importers/base_importer.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/importers/onnx_importer.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/ir/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/ir/function.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/ir/graph.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/ir/node.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/ir/tensor.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/logger/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/logger/logger.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/util/__init__.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/util/exception.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/util/misc.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/symbolic_shape_infer.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/utils.py +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim.egg-info/SOURCES.txt +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim.egg-info/dependency_links.txt +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim.egg-info/entry_points.txt +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim.egg-info/top_level.txt +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim.egg-info/zip-safe +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/pyproject.toml +0 -0
- {onnxslim-0.1.75 → onnxslim-0.1.77}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onnxslim
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.77
|
|
4
4
|
Summary: OnnxSlim: A Toolkit to Help Optimize Onnx Model
|
|
5
5
|
Home-page: https://github.com/inisis/OnnxSlim
|
|
6
6
|
Author: inisis
|
|
@@ -15,7 +15,7 @@ Requires-Python: >=3.6
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: onnx
|
|
18
|
-
Requires-Dist: sympy>=1.13.
|
|
18
|
+
Requires-Dist: sympy>=1.13.1
|
|
19
19
|
Requires-Dist: packaging
|
|
20
20
|
Requires-Dist: colorama
|
|
21
21
|
Requires-Dist: ml_dtypes
|
onnxslim-0.1.77/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.77
|
|
@@ -11,7 +11,7 @@ from sympy.core.parameters import global_parameters
|
|
|
11
11
|
from sympy.core.singleton import S, Singleton
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class IntInfinitySlim(Number, metaclass=Singleton):
|
|
15
15
|
r"""
|
|
16
16
|
Positive integer infinite quantity.
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
20
20
|
sympy's existing notion of infinity in that it reports that
|
|
21
21
|
it is_integer.
|
|
22
22
|
|
|
23
|
-
Infinity is a singleton, and can be accessed by ``S.
|
|
23
|
+
Infinity is a singleton, and can be accessed by ``S.IntInfinitySlim``,
|
|
24
24
|
or can be imported as ``int_oo``.
|
|
25
25
|
"""
|
|
26
26
|
|
|
@@ -65,7 +65,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
65
65
|
if isinstance(other, Number) and global_parameters.evaluate:
|
|
66
66
|
if other in (S.Infinity, S.NegativeInfinity):
|
|
67
67
|
return other
|
|
68
|
-
if other in (S.
|
|
68
|
+
if other in (S.NegativeIntInfinitySlim, S.NaN):
|
|
69
69
|
return S.NaN
|
|
70
70
|
return self
|
|
71
71
|
return Number.__add__(self, other)
|
|
@@ -79,7 +79,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
79
79
|
return S.NegativeInfinity
|
|
80
80
|
if other is S.NegativeInfinity:
|
|
81
81
|
return S.Infinity
|
|
82
|
-
if other in (S.
|
|
82
|
+
if other in (S.IntInfinitySlim, S.NaN):
|
|
83
83
|
return S.NaN
|
|
84
84
|
return self
|
|
85
85
|
return Number.__sub__(self, other)
|
|
@@ -95,7 +95,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
95
95
|
return S.NaN
|
|
96
96
|
if other.is_extended_positive:
|
|
97
97
|
return self
|
|
98
|
-
return S.
|
|
98
|
+
return S.NegativeIntInfinitySlim
|
|
99
99
|
return Number.__mul__(self, other)
|
|
100
100
|
|
|
101
101
|
__rmul__ = __mul__
|
|
@@ -105,9 +105,9 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
105
105
|
if isinstance(other, Number) and global_parameters.evaluate:
|
|
106
106
|
if other in (
|
|
107
107
|
S.Infinity,
|
|
108
|
-
S.
|
|
108
|
+
S.IntInfinitySlim,
|
|
109
109
|
S.NegativeInfinity,
|
|
110
|
-
S.
|
|
110
|
+
S.NegativeIntInfinitySlim,
|
|
111
111
|
S.NaN,
|
|
112
112
|
):
|
|
113
113
|
return S.NaN
|
|
@@ -117,14 +117,14 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
117
117
|
return Number.__truediv__(self, other)
|
|
118
118
|
|
|
119
119
|
def __abs__(self):
|
|
120
|
-
return S.
|
|
120
|
+
return S.IntInfinitySlim
|
|
121
121
|
|
|
122
122
|
def __neg__(self):
|
|
123
|
-
return S.
|
|
123
|
+
return S.NegativeIntInfinitySlim
|
|
124
124
|
|
|
125
125
|
def _eval_power(self, expt):
|
|
126
126
|
if expt.is_extended_positive:
|
|
127
|
-
return S.
|
|
127
|
+
return S.IntInfinitySlim
|
|
128
128
|
if expt.is_extended_negative:
|
|
129
129
|
return S.Zero
|
|
130
130
|
if expt is S.NaN:
|
|
@@ -151,15 +151,15 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
151
151
|
return super().__hash__()
|
|
152
152
|
|
|
153
153
|
def __eq__(self, other):
|
|
154
|
-
return other is S.
|
|
154
|
+
return other is S.IntInfinitySlim
|
|
155
155
|
|
|
156
156
|
def __ne__(self, other):
|
|
157
|
-
return other is not S.
|
|
157
|
+
return other is not S.IntInfinitySlim
|
|
158
158
|
|
|
159
159
|
def __gt__(self, other):
|
|
160
160
|
if other is S.Infinity:
|
|
161
161
|
return sympy.false # sympy.oo > int_oo
|
|
162
|
-
elif other is S.
|
|
162
|
+
elif other is S.IntInfinitySlim:
|
|
163
163
|
return sympy.false # consistency with sympy.oo
|
|
164
164
|
else:
|
|
165
165
|
return sympy.true
|
|
@@ -167,7 +167,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
167
167
|
def __ge__(self, other):
|
|
168
168
|
if other is S.Infinity:
|
|
169
169
|
return sympy.false # sympy.oo > int_oo
|
|
170
|
-
elif other is S.
|
|
170
|
+
elif other is S.IntInfinitySlim:
|
|
171
171
|
return sympy.true # consistency with sympy.oo
|
|
172
172
|
else:
|
|
173
173
|
return sympy.true
|
|
@@ -175,7 +175,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
175
175
|
def __lt__(self, other):
|
|
176
176
|
if other is S.Infinity:
|
|
177
177
|
return sympy.true # sympy.oo > int_oo
|
|
178
|
-
elif other is S.
|
|
178
|
+
elif other is S.IntInfinitySlim:
|
|
179
179
|
return sympy.false # consistency with sympy.oo
|
|
180
180
|
else:
|
|
181
181
|
return sympy.false
|
|
@@ -183,7 +183,7 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
183
183
|
def __le__(self, other):
|
|
184
184
|
if other is S.Infinity:
|
|
185
185
|
return sympy.true # sympy.oo > int_oo
|
|
186
|
-
elif other is S.
|
|
186
|
+
elif other is S.IntInfinitySlim:
|
|
187
187
|
return sympy.true # consistency with sympy.oo
|
|
188
188
|
else:
|
|
189
189
|
return sympy.false
|
|
@@ -203,10 +203,10 @@ class IntInfinity(Number, metaclass=Singleton):
|
|
|
203
203
|
return self
|
|
204
204
|
|
|
205
205
|
|
|
206
|
-
int_oo = S.
|
|
206
|
+
int_oo = S.IntInfinitySlim
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
class
|
|
209
|
+
class NegativeIntInfinitySlim(Number, metaclass=Singleton):
|
|
210
210
|
"""
|
|
211
211
|
Negative integer infinite quantity.
|
|
212
212
|
|
|
@@ -216,7 +216,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
216
216
|
See Also
|
|
217
217
|
========
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
IntInfinitySlim
|
|
220
220
|
"""
|
|
221
221
|
|
|
222
222
|
# Ensure we get dispatched to before plain numbers
|
|
@@ -255,7 +255,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
255
255
|
if isinstance(other, Number) and global_parameters.evaluate:
|
|
256
256
|
if other is S.Infinity:
|
|
257
257
|
return S.Infinity
|
|
258
|
-
if other in (S.
|
|
258
|
+
if other in (S.IntInfinitySlim, S.NaN):
|
|
259
259
|
return S.NaN
|
|
260
260
|
return self
|
|
261
261
|
return Number.__add__(self, other)
|
|
@@ -267,7 +267,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
267
267
|
if isinstance(other, Number) and global_parameters.evaluate:
|
|
268
268
|
if other is S.NegativeInfinity:
|
|
269
269
|
return S.Infinity
|
|
270
|
-
if other in (S.
|
|
270
|
+
if other in (S.NegativeIntInfinitySlim, S.NaN):
|
|
271
271
|
return S.NaN
|
|
272
272
|
return self
|
|
273
273
|
return Number.__sub__(self, other)
|
|
@@ -283,7 +283,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
283
283
|
return S.NaN
|
|
284
284
|
if other.is_extended_positive:
|
|
285
285
|
return self
|
|
286
|
-
return S.
|
|
286
|
+
return S.IntInfinitySlim
|
|
287
287
|
return Number.__mul__(self, other)
|
|
288
288
|
|
|
289
289
|
__rmul__ = __mul__
|
|
@@ -293,9 +293,9 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
293
293
|
if isinstance(other, Number) and global_parameters.evaluate:
|
|
294
294
|
if other in (
|
|
295
295
|
S.Infinity,
|
|
296
|
-
S.
|
|
296
|
+
S.IntInfinitySlim,
|
|
297
297
|
S.NegativeInfinity,
|
|
298
|
-
S.
|
|
298
|
+
S.NegativeIntInfinitySlim,
|
|
299
299
|
S.NaN,
|
|
300
300
|
):
|
|
301
301
|
return S.NaN
|
|
@@ -305,10 +305,10 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
305
305
|
return Number.__truediv__(self, other)
|
|
306
306
|
|
|
307
307
|
def __abs__(self):
|
|
308
|
-
return S.
|
|
308
|
+
return S.IntInfinitySlim
|
|
309
309
|
|
|
310
310
|
def __neg__(self):
|
|
311
|
-
return S.
|
|
311
|
+
return S.IntInfinitySlim
|
|
312
312
|
|
|
313
313
|
def _eval_power(self, expt):
|
|
314
314
|
if expt.is_number:
|
|
@@ -316,18 +316,18 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
316
316
|
S.NaN,
|
|
317
317
|
S.Infinity,
|
|
318
318
|
S.NegativeInfinity,
|
|
319
|
-
S.
|
|
320
|
-
S.
|
|
319
|
+
S.IntInfinitySlim,
|
|
320
|
+
S.NegativeIntInfinitySlim,
|
|
321
321
|
):
|
|
322
322
|
return S.NaN
|
|
323
323
|
|
|
324
324
|
if isinstance(expt, sympy.Integer) and expt.is_extended_positive:
|
|
325
325
|
if expt.is_odd:
|
|
326
|
-
return S.
|
|
326
|
+
return S.NegativeIntInfinitySlim
|
|
327
327
|
else:
|
|
328
|
-
return S.
|
|
328
|
+
return S.IntInfinitySlim
|
|
329
329
|
|
|
330
|
-
inf_part = S.
|
|
330
|
+
inf_part = S.IntInfinitySlim**expt
|
|
331
331
|
s_part = S.NegativeOne**expt
|
|
332
332
|
if inf_part == 0 and s_part.is_finite:
|
|
333
333
|
return inf_part
|
|
@@ -342,15 +342,15 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
342
342
|
return super().__hash__()
|
|
343
343
|
|
|
344
344
|
def __eq__(self, other):
|
|
345
|
-
return other is S.
|
|
345
|
+
return other is S.NegativeIntInfinitySlim
|
|
346
346
|
|
|
347
347
|
def __ne__(self, other):
|
|
348
|
-
return other is not S.
|
|
348
|
+
return other is not S.NegativeIntInfinitySlim
|
|
349
349
|
|
|
350
350
|
def __gt__(self, other):
|
|
351
351
|
if other is S.NegativeInfinity:
|
|
352
352
|
return sympy.true # -sympy.oo < -int_oo
|
|
353
|
-
elif other is S.
|
|
353
|
+
elif other is S.NegativeIntInfinitySlim:
|
|
354
354
|
return sympy.false # consistency with sympy.oo
|
|
355
355
|
else:
|
|
356
356
|
return sympy.false
|
|
@@ -358,7 +358,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
358
358
|
def __ge__(self, other):
|
|
359
359
|
if other is S.NegativeInfinity:
|
|
360
360
|
return sympy.true # -sympy.oo < -int_oo
|
|
361
|
-
elif other is S.
|
|
361
|
+
elif other is S.NegativeIntInfinitySlim:
|
|
362
362
|
return sympy.true # consistency with sympy.oo
|
|
363
363
|
else:
|
|
364
364
|
return sympy.false
|
|
@@ -366,7 +366,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
366
366
|
def __lt__(self, other):
|
|
367
367
|
if other is S.NegativeInfinity:
|
|
368
368
|
return sympy.false # -sympy.oo < -int_oo
|
|
369
|
-
elif other is S.
|
|
369
|
+
elif other is S.NegativeIntInfinitySlim:
|
|
370
370
|
return sympy.false # consistency with sympy.oo
|
|
371
371
|
else:
|
|
372
372
|
return sympy.true
|
|
@@ -374,7 +374,7 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
374
374
|
def __le__(self, other):
|
|
375
375
|
if other is S.NegativeInfinity:
|
|
376
376
|
return sympy.false # -sympy.oo < -int_oo
|
|
377
|
-
elif other is S.
|
|
377
|
+
elif other is S.NegativeIntInfinitySlim:
|
|
378
378
|
return sympy.true # consistency with sympy.oo
|
|
379
379
|
else:
|
|
380
380
|
return sympy.true
|
|
@@ -394,4 +394,4 @@ class NegativeIntInfinity(Number, metaclass=Singleton):
|
|
|
394
394
|
return self
|
|
395
395
|
|
|
396
396
|
def as_powers_dict(self):
|
|
397
|
-
return {S.NegativeOne: 1, S.
|
|
397
|
+
return {S.NegativeOne: 1, S.IntInfinitySlim: 1}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.77"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onnxslim
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.77
|
|
4
4
|
Summary: OnnxSlim: A Toolkit to Help Optimize Onnx Model
|
|
5
5
|
Home-page: https://github.com/inisis/OnnxSlim
|
|
6
6
|
Author: inisis
|
|
@@ -15,7 +15,7 @@ Requires-Python: >=3.6
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: onnx
|
|
18
|
-
Requires-Dist: sympy>=1.13.
|
|
18
|
+
Requires-Dist: sympy>=1.13.1
|
|
19
19
|
Requires-Dist: packaging
|
|
20
20
|
Requires-Dist: colorama
|
|
21
21
|
Requires-Dist: ml_dtypes
|
|
@@ -25,7 +25,7 @@ setup(
|
|
|
25
25
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
26
26
|
],
|
|
27
27
|
license="MIT",
|
|
28
|
-
install_requires=["onnx", "sympy>=1.13.
|
|
28
|
+
install_requires=["onnx", "sympy>=1.13.1", "packaging", "colorama", "ml_dtypes"],
|
|
29
29
|
packages=find_packages(exclude=("tests", "tests.*")),
|
|
30
30
|
entry_points={"console_scripts": ["onnxslim=onnxslim.cli:main"]},
|
|
31
31
|
zip_safe=True,
|
onnxslim-0.1.75/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.75
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.75"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/exporters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/graph_pattern/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/importers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/logger/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{onnxslim-0.1.75 → onnxslim-0.1.77}/onnxslim/third_party/onnx_graphsurgeon/util/exception.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|