mct-nightly 2.0.0.20240415.5018__py3-none-any.whl → 2.0.0.20240416.403__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.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/METADATA +1 -1
- {mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/RECORD +10 -10
- model_compression_toolkit/__init__.py +1 -1
- model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_keras.py +5 -3
- model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_pytorch.py +4 -4
- model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_keras.py +5 -3
- model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_pytorch.py +4 -4
- {mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/LICENSE.md +0 -0
- {mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/WHEEL +0 -0
- {mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/top_level.txt +0 -0
{mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
model_compression_toolkit/__init__.py,sha256=
|
|
1
|
+
model_compression_toolkit/__init__.py,sha256=KTYCxOzzo2m8dPzI8ywsREykhLFg_6-dmbX-KU-IqPM,1573
|
|
2
2
|
model_compression_toolkit/constants.py,sha256=f9at1H_-vb5nvdHRmAHUco4ja4_QermK6yu0N9qbRGE,3723
|
|
3
3
|
model_compression_toolkit/defaultdict.py,sha256=LSc-sbZYXENMCw3U9F4GiXuv67IKpdn0Qm7Fr11jy-4,2277
|
|
4
4
|
model_compression_toolkit/logger.py,sha256=3DByV41XHRR3kLTJNbpaMmikL8icd9e1N-nkQAY9oDk,4567
|
|
@@ -444,12 +444,12 @@ model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1_
|
|
|
444
444
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1_pot/tpc_pytorch.py,sha256=X853xDEF-3rcPoqxbrlYN28vvW3buSdM36c_eN_LKx8,5758
|
|
445
445
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/__init__.py,sha256=vKWAoQ2KkhuptS5HZB50zHG6KY8wHpHTxPugw_nGCRo,717
|
|
446
446
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tp_model.py,sha256=8FZjOCaQRwrQLbtmzNrrRj2-VyZMUGzsIWKIDpGVEoQ,10947
|
|
447
|
-
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_keras.py,sha256=
|
|
448
|
-
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_pytorch.py,sha256=
|
|
447
|
+
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_keras.py,sha256=QVIOc_DrFHBb81q3N8Fmx5GkOBviWsulxEwHpsyFik4,6570
|
|
448
|
+
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_pytorch.py,sha256=jAyTXhcChO124odtWC3bYKRH4ZyqLPkKQluJFOoyPIM,5726
|
|
449
449
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/__init__.py,sha256=wUk4Xsg7jpxOWYjq2K3WUwLcI185p_sVPK-ttG0ydhA,721
|
|
450
450
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tp_model.py,sha256=T6Hp_Rk15SAz22g_SWDyHJecBpBAjxKt3ezuVEYf4LE,10680
|
|
451
|
-
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_keras.py,sha256=
|
|
452
|
-
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_pytorch.py,sha256=
|
|
451
|
+
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_keras.py,sha256=n9HA61-bFm8g0rals9aTvH7i09EU4B788nymFofLwkw,6578
|
|
452
|
+
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_pytorch.py,sha256=dFQjzFlLDwoUqKNP1at1fS1N1WJadSSasRyzHl6vaB8,5733
|
|
453
453
|
model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/__init__.py,sha256=cco4TmeIDIh32nj9ZZXVkws4dd9F2UDrmjKzTN8G0V0,697
|
|
454
454
|
model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/target_platform_capabilities.py,sha256=lnhJcwvTF0t7ybeiTleIS1p0aD8xzFZxVPx4ISk5uWQ,2090
|
|
455
455
|
model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/latest/__init__.py,sha256=UUvUCcTots_sehdRnDfgkaE8WPQ7dPbeuhDF4Qy2nzw,1510
|
|
@@ -480,8 +480,8 @@ model_compression_toolkit/trainable_infrastructure/keras/quantize_wrapper.py,sha
|
|
|
480
480
|
model_compression_toolkit/trainable_infrastructure/keras/quantizer_utils.py,sha256=MVwXNymmFRB2NXIBx4e2mdJ1RfoHxRPYRgjb1MQP5kY,1797
|
|
481
481
|
model_compression_toolkit/trainable_infrastructure/pytorch/__init__.py,sha256=huHoBUcKNB6BnY6YaUCcFvdyBtBI172ZoUD8ZYeNc6o,696
|
|
482
482
|
model_compression_toolkit/trainable_infrastructure/pytorch/base_pytorch_quantizer.py,sha256=7bbzqJN8ZAycVDvZr_5xC-niTAR5df8f03Kooev_pfg,3047
|
|
483
|
-
mct_nightly-2.0.0.
|
|
484
|
-
mct_nightly-2.0.0.
|
|
485
|
-
mct_nightly-2.0.0.
|
|
486
|
-
mct_nightly-2.0.0.
|
|
487
|
-
mct_nightly-2.0.0.
|
|
483
|
+
mct_nightly-2.0.0.20240416.403.dist-info/LICENSE.md,sha256=aYSSIb-5AFPeITTvXm1UAoe0uYBiMmSS8flvXaaFUks,10174
|
|
484
|
+
mct_nightly-2.0.0.20240416.403.dist-info/METADATA,sha256=q5Rcs-EVPfnHC_czeMd1EmA5PcrczG399SifWAKW644,18795
|
|
485
|
+
mct_nightly-2.0.0.20240416.403.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
486
|
+
mct_nightly-2.0.0.20240416.403.dist-info/top_level.txt,sha256=gsYA8juk0Z-ZmQRKULkb3JLGdOdz8jW_cMRjisn9ga4,26
|
|
487
|
+
mct_nightly-2.0.0.20240416.403.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.0.0.
|
|
30
|
+
__version__ = "2.0.0.20240416.000403"
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_keras.py
CHANGED
|
@@ -26,11 +26,11 @@ if FOUND_SONY_CUSTOM_LAYERS:
|
|
|
26
26
|
if version.parse(tf.__version__) >= version.parse("2.13"):
|
|
27
27
|
from keras.src.layers import Conv2D, DepthwiseConv2D, Dense, Reshape, ZeroPadding2D, Dropout, \
|
|
28
28
|
MaxPooling2D, Activation, ReLU, Add, Subtract, Multiply, PReLU, Flatten, Cropping2D, LeakyReLU, Permute, \
|
|
29
|
-
Conv2DTranspose
|
|
29
|
+
Conv2DTranspose, Identity
|
|
30
30
|
else:
|
|
31
31
|
from keras.layers import Conv2D, DepthwiseConv2D, Dense, Reshape, ZeroPadding2D, Dropout, \
|
|
32
32
|
MaxPooling2D, Activation, ReLU, Add, Subtract, Multiply, PReLU, Flatten, Cropping2D, LeakyReLU, Permute, \
|
|
33
|
-
Conv2DTranspose
|
|
33
|
+
Conv2DTranspose, Identity
|
|
34
34
|
|
|
35
35
|
from model_compression_toolkit.target_platform_capabilities.tpc_models.imx500_tpc.v2.tp_model import get_tp_model
|
|
36
36
|
import model_compression_toolkit as mct
|
|
@@ -62,7 +62,9 @@ def generate_keras_tpc(name: str, tp_model: tp.TargetPlatformModel):
|
|
|
62
62
|
|
|
63
63
|
keras_tpc = tp.TargetPlatformCapabilities(tp_model, name=name, version=TPC_VERSION)
|
|
64
64
|
|
|
65
|
-
no_quant_list = [
|
|
65
|
+
no_quant_list = [Identity,
|
|
66
|
+
tf.identity,
|
|
67
|
+
Reshape,
|
|
66
68
|
tf.reshape,
|
|
67
69
|
Permute,
|
|
68
70
|
tf.transpose,
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2/tpc_pytorch.py
CHANGED
|
@@ -18,8 +18,8 @@ import operator
|
|
|
18
18
|
import torch
|
|
19
19
|
from torch import add, sub, mul, div, flatten, reshape, split, unsqueeze, dropout, sigmoid, tanh, chunk, unbind, topk, \
|
|
20
20
|
gather, equal, transpose, permute, argmax, squeeze
|
|
21
|
-
from torch.nn import Conv2d, Linear,
|
|
22
|
-
from torch.nn import Dropout, Flatten, Hardtanh
|
|
21
|
+
from torch.nn import Conv2d, Linear, ConvTranspose2d
|
|
22
|
+
from torch.nn import Dropout, Flatten, Hardtanh, Identity
|
|
23
23
|
from torch.nn import ReLU, ReLU6, PReLU, SiLU, Sigmoid, Tanh, Hardswish, LeakyReLU
|
|
24
24
|
from torch.nn.functional import relu, relu6, prelu, silu, hardtanh, hardswish, leaky_relu
|
|
25
25
|
|
|
@@ -65,7 +65,8 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
|
|
|
65
65
|
BIAS_ATTR: DefaultDict(default_value=BIAS)}
|
|
66
66
|
|
|
67
67
|
with pytorch_tpc:
|
|
68
|
-
tp.OperationsSetToLayers("NoQuantization", [
|
|
68
|
+
tp.OperationsSetToLayers("NoQuantization", [Identity,
|
|
69
|
+
Dropout,
|
|
69
70
|
Flatten,
|
|
70
71
|
dropout,
|
|
71
72
|
flatten,
|
|
@@ -73,7 +74,6 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
|
|
|
73
74
|
operator.getitem,
|
|
74
75
|
reshape,
|
|
75
76
|
unsqueeze,
|
|
76
|
-
BatchNorm2d,
|
|
77
77
|
chunk,
|
|
78
78
|
unbind,
|
|
79
79
|
torch.Tensor.size,
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_keras.py
CHANGED
|
@@ -26,11 +26,11 @@ if FOUND_SONY_CUSTOM_LAYERS:
|
|
|
26
26
|
if version.parse(tf.__version__) >= version.parse("2.13"):
|
|
27
27
|
from keras.src.layers import Conv2D, DepthwiseConv2D, Dense, Reshape, ZeroPadding2D, Dropout, \
|
|
28
28
|
MaxPooling2D, Activation, ReLU, Add, Subtract, Multiply, PReLU, Flatten, Cropping2D, LeakyReLU, Permute, \
|
|
29
|
-
Conv2DTranspose
|
|
29
|
+
Conv2DTranspose, Identity
|
|
30
30
|
else:
|
|
31
31
|
from keras.layers import Conv2D, DepthwiseConv2D, Dense, Reshape, ZeroPadding2D, Dropout, \
|
|
32
32
|
MaxPooling2D, Activation, ReLU, Add, Subtract, Multiply, PReLU, Flatten, Cropping2D, LeakyReLU, Permute, \
|
|
33
|
-
Conv2DTranspose
|
|
33
|
+
Conv2DTranspose, Identity
|
|
34
34
|
|
|
35
35
|
from model_compression_toolkit.target_platform_capabilities.tpc_models.imx500_tpc.v2_lut.tp_model import get_tp_model
|
|
36
36
|
import model_compression_toolkit as mct
|
|
@@ -61,7 +61,9 @@ def generate_keras_tpc(name: str, tp_model: tp.TargetPlatformModel):
|
|
|
61
61
|
|
|
62
62
|
keras_tpc = tp.TargetPlatformCapabilities(tp_model, name=name, version=TPC_VERSION)
|
|
63
63
|
|
|
64
|
-
no_quant_list = [
|
|
64
|
+
no_quant_list = [Identity,
|
|
65
|
+
tf.identity,
|
|
66
|
+
Reshape,
|
|
65
67
|
tf.reshape,
|
|
66
68
|
Permute,
|
|
67
69
|
tf.transpose,
|
model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v2_lut/tpc_pytorch.py
CHANGED
|
@@ -18,8 +18,8 @@ import operator
|
|
|
18
18
|
import torch
|
|
19
19
|
from torch import add, sub, mul, div, flatten, reshape, split, unsqueeze, dropout, sigmoid, tanh, chunk, unbind, topk, \
|
|
20
20
|
gather, equal, transpose, permute, argmax, squeeze
|
|
21
|
-
from torch.nn import Conv2d, Linear,
|
|
22
|
-
from torch.nn import Dropout, Flatten, Hardtanh
|
|
21
|
+
from torch.nn import Conv2d, Linear, ConvTranspose2d
|
|
22
|
+
from torch.nn import Dropout, Flatten, Hardtanh, Identity
|
|
23
23
|
from torch.nn import ReLU, ReLU6, PReLU, SiLU, Sigmoid, Tanh, Hardswish, LeakyReLU
|
|
24
24
|
from torch.nn.functional import relu, relu6, prelu, silu, hardtanh, hardswish, leaky_relu
|
|
25
25
|
|
|
@@ -64,7 +64,8 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
|
|
|
64
64
|
BIAS_ATTR: DefaultDict(default_value=BIAS)}
|
|
65
65
|
|
|
66
66
|
with pytorch_tpc:
|
|
67
|
-
tp.OperationsSetToLayers("NoQuantization", [
|
|
67
|
+
tp.OperationsSetToLayers("NoQuantization", [Identity,
|
|
68
|
+
Dropout,
|
|
68
69
|
Flatten,
|
|
69
70
|
dropout,
|
|
70
71
|
flatten,
|
|
@@ -72,7 +73,6 @@ def generate_pytorch_tpc(name: str, tp_model: tp.TargetPlatformModel):
|
|
|
72
73
|
operator.getitem,
|
|
73
74
|
reshape,
|
|
74
75
|
unsqueeze,
|
|
75
|
-
BatchNorm2d,
|
|
76
76
|
chunk,
|
|
77
77
|
unbind,
|
|
78
78
|
torch.Tensor.size,
|
{mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
{mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/WHEEL
RENAMED
|
File without changes
|
{mct_nightly-2.0.0.20240415.5018.dist-info → mct_nightly-2.0.0.20240416.403.dist-info}/top_level.txt
RENAMED
|
File without changes
|