mct-nightly 2.2.0.20240921.442__py3-none-any.whl → 2.2.0.20240923.519__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.
- {mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/METADATA +1 -1
- {mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/RECORD +7 -7
- model_compression_toolkit/__init__.py +1 -1
- model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_onnx_pytorch_exporter.py +3 -3
- {mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/LICENSE.md +0 -0
- {mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/WHEEL +0 -0
- {mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/top_level.txt +0 -0
{mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
model_compression_toolkit/__init__.py,sha256=
|
1
|
+
model_compression_toolkit/__init__.py,sha256=UVgJr4o12hnvokslgJqvRGFG0RsoLcpWX-aTjDrS66M,1573
|
2
2
|
model_compression_toolkit/constants.py,sha256=i4wYheBkIdQmsQA-axIpcT3YiSO1USNc-jaNiNE8w6E,3920
|
3
3
|
model_compression_toolkit/defaultdict.py,sha256=LSc-sbZYXENMCw3U9F4GiXuv67IKpdn0Qm7Fr11jy-4,2277
|
4
4
|
model_compression_toolkit/logger.py,sha256=3DByV41XHRR3kLTJNbpaMmikL8icd9e1N-nkQAY9oDk,4567
|
@@ -325,7 +325,7 @@ model_compression_toolkit/exporter/model_exporter/keras/mctq_keras_exporter.py,s
|
|
325
325
|
model_compression_toolkit/exporter/model_exporter/pytorch/__init__.py,sha256=uZ2RigbY9O2PJ0Il8wPpS_s7frgg9WUGd_SHeKGyl1A,699
|
326
326
|
model_compression_toolkit/exporter/model_exporter/pytorch/base_pytorch_exporter.py,sha256=UPVkEUQCMZ4Lld6CRnEOPEmlfe5vcQZG0Q3FwRBodD4,4021
|
327
327
|
model_compression_toolkit/exporter/model_exporter/pytorch/export_serialization_format.py,sha256=bPevy6OBqng41PqytBR55e6cBEuyrUS0H8dWX4zgjQ4,967
|
328
|
-
model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_onnx_pytorch_exporter.py,sha256=
|
328
|
+
model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_onnx_pytorch_exporter.py,sha256=07yCCypQaQ3FfhrxKhWwa03bnEgJ8lIknafqeYfvzCQ,6803
|
329
329
|
model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_torchscript_pytorch_exporter.py,sha256=ksWV2A-Njo-wAxQ_Ye2sLIZXBWJ_WNyjT7-qFFwvV2o,2897
|
330
330
|
model_compression_toolkit/exporter/model_exporter/pytorch/pytorch_export_facade.py,sha256=8vYGKa58BkasvoHejYaPwubOJPcW0s-RY79_Kkw0Hy8,6236
|
331
331
|
model_compression_toolkit/exporter/model_wrapper/__init__.py,sha256=7CF2zvpTrIEm8qnbuHnLZyTZkwBBxV24V8QA0oxGbh0,1187
|
@@ -550,8 +550,8 @@ tests_pytest/pytorch/gptq/test_annealing_cfg.py,sha256=hGC7L6mp3N1ygcJ3OctgS_Fz2
|
|
550
550
|
tests_pytest/pytorch/gptq/test_gradual_act_quantization.py,sha256=tI01aFIUaiCILL5Qn--p1E_rLBUelxLdSY3k52lwcx0,4594
|
551
551
|
tests_pytest/pytorch/trainable_infrastructure/__init__.py,sha256=RAe8mgIr1V8dRIQtLf_dSG5zTUCKuQzxyybYx1dzEAs,697
|
552
552
|
tests_pytest/pytorch/trainable_infrastructure/test_linear_annealing.py,sha256=eNOpSp0GoLxtEdiRypBp8jaujXfdNxBwKh5Rd-P7WLs,1786
|
553
|
-
mct_nightly-2.2.0.
|
554
|
-
mct_nightly-2.2.0.
|
555
|
-
mct_nightly-2.2.0.
|
556
|
-
mct_nightly-2.2.0.
|
557
|
-
mct_nightly-2.2.0.
|
553
|
+
mct_nightly-2.2.0.20240923.519.dist-info/LICENSE.md,sha256=aYSSIb-5AFPeITTvXm1UAoe0uYBiMmSS8flvXaaFUks,10174
|
554
|
+
mct_nightly-2.2.0.20240923.519.dist-info/METADATA,sha256=-EVSrECszepXB9DT1vFyZts_fZ0lAriIG7487IGCfks,20813
|
555
|
+
mct_nightly-2.2.0.20240923.519.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
556
|
+
mct_nightly-2.2.0.20240923.519.dist-info/top_level.txt,sha256=csdfSXhtRnpWYRzjZ-dRLIhOmM2TEdVXUxG05A5fgb8,39
|
557
|
+
mct_nightly-2.2.0.20240923.519.dist-info/RECORD,,
|
@@ -27,4 +27,4 @@ from model_compression_toolkit import data_generation
|
|
27
27
|
from model_compression_toolkit import pruning
|
28
28
|
from model_compression_toolkit.trainable_infrastructure.keras.load_model import keras_load_quantized_model
|
29
29
|
|
30
|
-
__version__ = "2.2.0.
|
30
|
+
__version__ = "2.2.0.20240923.000519"
|
model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_onnx_pytorch_exporter.py
CHANGED
@@ -89,12 +89,12 @@ if FOUND_ONNX:
|
|
89
89
|
else:
|
90
90
|
Logger.info(f"Exporting fake-quant onnx model: {self.save_model_path}")
|
91
91
|
|
92
|
-
model_input = to_torch_tensor(next(self.repr_dataset())
|
92
|
+
model_input = to_torch_tensor(next(self.repr_dataset()))
|
93
93
|
|
94
94
|
if hasattr(self.model, 'metadata'):
|
95
95
|
onnx_bytes = BytesIO()
|
96
96
|
torch.onnx.export(self.model,
|
97
|
-
model_input,
|
97
|
+
tuple(model_input) if isinstance(model_input, list) else model_input,
|
98
98
|
onnx_bytes,
|
99
99
|
opset_version=self._onnx_opset_version,
|
100
100
|
verbose=False,
|
@@ -107,7 +107,7 @@ if FOUND_ONNX:
|
|
107
107
|
onnx.save_model(onnx_model, self.save_model_path)
|
108
108
|
else:
|
109
109
|
torch.onnx.export(self.model,
|
110
|
-
model_input,
|
110
|
+
tuple(model_input) if isinstance(model_input, list) else model_input,
|
111
111
|
self.save_model_path,
|
112
112
|
opset_version=self._onnx_opset_version,
|
113
113
|
verbose=False,
|
{mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/LICENSE.md
RENAMED
File without changes
|
File without changes
|
{mct_nightly-2.2.0.20240921.442.dist-info → mct_nightly-2.2.0.20240923.519.dist-info}/top_level.txt
RENAMED
File without changes
|