onnxslim 0.1.81__py3-none-any.whl → 0.1.82__py3-none-any.whl
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/core/optimization/dead_node_elimination.py +4 -4
- {onnxslim-0.1.81.dist-info → onnxslim-0.1.82.dist-info}/METADATA +1 -1
- {onnxslim-0.1.81.dist-info → onnxslim-0.1.82.dist-info}/RECORD +6 -6
- {onnxslim-0.1.81.dist-info → onnxslim-0.1.82.dist-info}/WHEEL +0 -0
- {onnxslim-0.1.81.dist-info → onnxslim-0.1.82.dist-info}/entry_points.txt +0 -0
- {onnxslim-0.1.81.dist-info → onnxslim-0.1.82.dist-info}/licenses/LICENSE +0 -0
|
@@ -53,10 +53,10 @@ def dead_node_elimination(graph, is_subgraph=False):
|
|
|
53
53
|
node.inputs.pop(1)
|
|
54
54
|
node.inputs.insert(1, reshape_const)
|
|
55
55
|
logger.debug(f"replacing {node.op} op: {node.name}")
|
|
56
|
-
elif node.op == "Slice":
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
# elif node.op == "Slice":
|
|
57
|
+
# if node.inputs[0].shape and node.outputs[0].shape and node.inputs[0].shape == node.outputs[0].shape and all(isinstance(item, int) for item in node.inputs[0].shape):
|
|
58
|
+
# node.erase()
|
|
59
|
+
# logger.debug(f"removing {node.op} op: {node.name}")
|
|
60
60
|
elif node.op == "Mul":
|
|
61
61
|
if (isinstance(node.inputs[1], Constant) and isinstance(node.inputs[0], Variable)) or (
|
|
62
62
|
isinstance(node.inputs[0], Constant) and isinstance(node.inputs[1], Variable)
|
|
@@ -7,7 +7,7 @@ onnxslim/cli/__init__.py,sha256=kxK27cDgWotBOWRs86rbRQf_dtmniKr1GZJeasxfESE,42
|
|
|
7
7
|
onnxslim/cli/_main.py,sha256=jEKv9q7y_y9g0GsrfXcnk_wyMVej6jhe9QNPChE7yTs,5550
|
|
8
8
|
onnxslim/core/__init__.py,sha256=uDg-Eu29Ezb3txwZf5mN0zQRVuqF-K9BvktE8WBYS4E,8825
|
|
9
9
|
onnxslim/core/optimization/__init__.py,sha256=6w7VEhsfd7MhCSLmpAMLfxaEq9pf4YYHhNndggNLZCg,5034
|
|
10
|
-
onnxslim/core/optimization/dead_node_elimination.py,sha256=
|
|
10
|
+
onnxslim/core/optimization/dead_node_elimination.py,sha256=CVnSq_D_tYpziMmD8SO0IkmhvwpgZDQL0H-Cfe2zK-I,7873
|
|
11
11
|
onnxslim/core/optimization/subexpression_elimination.py,sha256=wauPADo0msVifYGgJ_fiNmPSe7LrJ7A-D3ur5z1wif8,2838
|
|
12
12
|
onnxslim/core/optimization/weight_tying.py,sha256=uAz_2AJa-s-budTcDXIr6ZcME1hXPdm54CzR-u850X4,2347
|
|
13
13
|
onnxslim/core/pattern/__init__.py,sha256=az4HayGp9WybHMiijr-VfbhzPIfRc-51JK8J1_Q-5Yo,9953
|
|
@@ -56,8 +56,8 @@ onnxslim/third_party/onnx_graphsurgeon/logger/logger.py,sha256=L12rrwn33RHH-2WLv
|
|
|
56
56
|
onnxslim/third_party/onnx_graphsurgeon/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
57
|
onnxslim/third_party/onnx_graphsurgeon/util/exception.py,sha256=KrsHbKEQ4237UbjlODsUzvkXoAY72LZi23ApBeFANWg,786
|
|
58
58
|
onnxslim/third_party/onnx_graphsurgeon/util/misc.py,sha256=kyxInD2SCRLU4wHMeiDEYEHB3871fGks6kQTuF9uATY,8960
|
|
59
|
-
onnxslim-0.1.
|
|
60
|
-
onnxslim-0.1.
|
|
61
|
-
onnxslim-0.1.
|
|
62
|
-
onnxslim-0.1.
|
|
63
|
-
onnxslim-0.1.
|
|
59
|
+
onnxslim-0.1.82.dist-info/METADATA,sha256=ckdfDDYyoew97VKJt1C7r_Vl-FK_NfQl0rR-Da1E2PE,10216
|
|
60
|
+
onnxslim-0.1.82.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
61
|
+
onnxslim-0.1.82.dist-info/entry_points.txt,sha256=O2QgceCVeGeRhnxRSDRcGiFd0ZNfElwrTiRo1W2V7KA,47
|
|
62
|
+
onnxslim-0.1.82.dist-info/licenses/LICENSE,sha256=oHZXw-yrBwdNVGu4JtlZhMgmQHKIZ7BJJlJdhu1HKvI,1062
|
|
63
|
+
onnxslim-0.1.82.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|