mct-nightly 1.8.0.20052023.post401__tar.gz → 1.8.0.20230610.post356__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.
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/PKG-INFO +9 -7
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/README.md +8 -6
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/mct_nightly.egg-info/PKG-INFO +9 -7
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/mct_nightly.egg-info/SOURCES.txt +16 -63
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/mct_nightly.egg-info/requires.txt +1 -0
- mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/__init__.py +51 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/framework_info.py +1 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/instance_builder.py +16 -9
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/keras_model_builder.py +8 -34
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/instance_builder.py +5 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/pytorch_model_builder.py +103 -28
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/fakely_quant_keras_exporter.py +39 -44
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/fakely_quant_tflite_exporter.py +1 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/int8_tflite_exporter.py +20 -18
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_onnx_pytorch_exporter.py +3 -3
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/pytorch/fakely_quant_torchscript_pytorch_exporter.py +1 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/keras/builder/fully_quantized_model_builder.py +36 -9
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/keras/builder/node_to_quantizer.py +4 -4
- mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/exporter/model_wrapper/keras/validate_layer.py +74 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/pytorch/builder/fully_quantized_model_builder.py +31 -8
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/pytorch/builder/node_to_quantizer.py +5 -5
- mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/exporter/model_wrapper/pytorch/validate_layer.py +70 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/gptq_training.py +15 -16
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/graph_info.py +2 -2
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/base_keras_gptq_quantizer.py +4 -5
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/quantization_builder.py +5 -7
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/soft_rounding/soft_quantizer_reg.py +1 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/soft_rounding/symmetric_soft_quantizer.py +6 -6
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/soft_rounding/uniform_soft_quantizer.py +7 -7
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/ste_rounding/symmetric_ste.py +6 -6
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/gptq_training.py +30 -10
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/graph_info.py +5 -2
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantization_facade.py +4 -2
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/base_pytorch_gptq_quantizer.py +4 -4
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/quantization_builder.py +5 -7
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/soft_rounding/soft_quantizer_reg.py +1 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/soft_rounding/symmetric_soft_quantizer.py +7 -7
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/soft_rounding/uniform_soft_quantizer.py +7 -8
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/ste_rounding/symmetric_ste.py +7 -8
- mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/qat/common/__init__.py +16 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/common/qat_config.py +2 -2
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantization_facade.py +18 -8
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/base_keras_qat_quantizer.py +1 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/quantization_builder.py +11 -11
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/ste_rounding/symmetric_ste.py +11 -12
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/ste_rounding/uniform_ste.py +12 -13
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantization_facade.py +27 -16
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/base_pytorch_qat_quantizer.py +2 -2
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/quantization_builder.py +31 -4
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/ste_rounding/symmetric_ste.py +10 -9
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/ste_rounding/uniform_ste.py +11 -10
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/__init__.py +2 -1
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/op_quantization_config.py +1 -25
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/constants.py → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/trainable_infrastructure/__init__.py +3 -10
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/common/base_trainable_quantizer.py +3 -3
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/common/get_quantizer_config.py +1 -1
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/common/get_quantizers.py +3 -3
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/keras/base_keras_quantizer.py +4 -4
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/keras/config_serialization.py +2 -2
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/trainable_infrastructure}/keras/load_model.py +16 -23
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/pytorch/base_pytorch_quantizer.py +3 -3
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/setup.cfg +1 -1
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/__init__.py +0 -31
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/exporter/model_wrapper/keras/validate_layer.py +0 -82
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/exporter/model_wrapper/pytorch/validate_layer.py +0 -44
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/qat/common/__init__.py +0 -15
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/__init__.py +0 -23
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/base_inferable_quantizer.py +0 -87
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/constants.py +0 -46
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/get_all_subclasses.py +0 -31
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/get_quantizers.py +0 -53
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/quant_utils.py +0 -49
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/activation_quantization_holder.py +0 -147
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantize_wrapper.py +0 -345
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizer_utils.py +0 -85
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/__init__.py +0 -27
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_lut_pot_inferable_quantizer.py +0 -148
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_pot_inferable_quantizer.py +0 -65
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_symmetric_inferable_quantizer.py +0 -86
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_uniform_inferable_quantizer.py +0 -111
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/base_keras_inferable_quantizer.py +0 -56
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_lut_pot_inferable_quantizer.py +0 -79
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_lut_symmetric_inferable_quantizer.py +0 -179
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_pot_inferable_quantizer.py +0 -67
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_symmetric_inferable_quantizer.py +0 -87
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_uniform_inferable_quantizer.py +0 -163
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/validation_functions.py +0 -66
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantize_wrapper.py +0 -269
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizer_utils.py +0 -152
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/__init__.py +0 -35
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_lut_pot_inferable_quantizer.py +0 -96
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_pot_inferable_quantizer.py +0 -62
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_symmetric_inferable_quantizer.py +0 -83
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_uniform_inferable_quantizer.py +0 -100
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_lut_symmetric_inferable_quantizer.py +0 -95
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_pytorch_inferable_quantizer.py +0 -48
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_symmetric_inferable_quantizer.py +0 -70
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_uniform_inferable_quantizer.py +0 -57
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/constants.py +0 -26
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_lut_pot_inferable_quantizer.py +0 -77
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_lut_symmetric_inferable_quantizer.py +0 -106
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_pot_inferable_quantizer.py +0 -66
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_symmetric_inferable_quantizer.py +0 -104
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_uniform_inferable_quantizer.py +0 -109
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/keras/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/pytorch/__init__.py +0 -14
- mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/__init__.py +0 -14
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/LICENSE.md +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/mct_nightly.egg-info/dependency_links.txt +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/mct_nightly.egg-info/top_level.txt +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/constants.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/analyzer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/back2framework/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/back2framework/base_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/base_substitutions.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/base_collector.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/histogram_collector.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/mean_collector.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/min_max_per_channel_collector.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/statistics_collector.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/collectors/statistics_collector_generator.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/data_loader.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/defaultdict.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/framework_implementation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/fusion/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/fusion/layer_fusing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/base_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/base_node.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/edge.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/functional_node.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/graph_matchers.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/graph_searches.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/bipartite_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/compute_graph_max_cut.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/cut.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/max_cut_astar.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/memory_element.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/memory_graph/memory_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/graph/virtual_activation_weights_node.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/base_graph_filter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/base_matcher.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/edge_matcher.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/function.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/node_matcher.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/matchers/walk_matcher.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/memory_computation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/bit_width_setter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/distance_weighting.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/kpi_tools/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/kpi_tools/kpi.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/kpi_tools/kpi_aggregation_methods.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/kpi_tools/kpi_data.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/kpi_tools/kpi_functions_mapping.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/kpi_tools/kpi_methods.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/mixed_precision_quantization_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/mixed_precision_search_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/mixed_precision_search_manager.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/search_methods/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/search_methods/linear_programming.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/sensitivity_evaluation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/mixed_precision/solution_refinement_procedure.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/model_builder_mode.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/model_collector.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/model_validation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/network_editors/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/network_editors/actions.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/network_editors/edit_network.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/network_editors/node_filters.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/node_prior_info.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/candidate_node_quantization_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/core_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/debug_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/filter_nodes_candidates.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/node_quantization_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_analyzer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_fn_selection.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_fn_selection.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/error_functions.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/kmeans_params.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/lut_kmeans_params.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/outlier_filter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/power_of_two_selection.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/qparams_activations_computation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/qparams_computation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/qparams_search.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/qparams_weights_computation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/symmetric_selection.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantization_params_generation/uniform_selection.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantize_graph_weights.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantize_node.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantizers/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantizers/kmeans_quantizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantizers/lut_kmeans_quantizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantizers/quantizers_helpers.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/quantizers/uniform_quantizers.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/quantization/set_node_quantization_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/similarity_analyzer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/statistics_correction/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/statistics_correction/apply_bias_correction_to_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/statistics_correction/apply_second_moment_correction_to_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/statistics_correction/compute_bias_correction_of_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/statistics_correction/statistics_correction.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/apply_substitutions.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/batchnorm_folding.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/batchnorm_reconstruction.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/batchnorm_refusing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/linear_collapsing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/linear_collapsing_substitution.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/residual_collapsing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/scale_equalization.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/shift_negative_activation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/softmax_shift.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/virtual_activation_weights_composition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/substitutions/weights_activation_split.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/user_info.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/visualization/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/visualization/final_config_visualizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/visualization/nn_visualizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/common/visualization/tensorboard_writer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/exporter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/factory_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/float_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/mixed_precision_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/model_gradients.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/back2framework/quantized_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/constants.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/default_framework_info.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/activation_decomposition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/batchnorm_folding.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/batchnorm_reconstruction.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/batchnorm_refusing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/input_scaling.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/linear_collapsing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/multi_head_attention_decomposition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/relu_bound_to_power_of_2.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/remove_relu_upper_bound.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/residual_collapsing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/scale_equalization.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/separableconv_decomposition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/shift_negative_activation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/softmax_shift.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/virtual_activation_weights_composition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/graph_substitutions/substitutions/weights_activation_split.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/keras_implementation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/keras_model_validation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/keras_node_prior_info.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/kpi_data_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/mixed_precision/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/mixed_precision/set_layer_to_bitwidth.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/base_quantizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/fake_quant_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/input_layer_quantize_transform.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/lut_fake_quant.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/mixed_precision/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/mixed_precision/quantization_config_factory.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/mixed_precision/selective_activation_quantizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/mixed_precision/selective_quantize_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/quantizer/mixed_precision/selective_weights_quantizer.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/common.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/connectivity_handler.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/nested_model/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/nested_model/edges_merger.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/nested_model/nested_model_handler.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/nested_model/nodes_merger.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/nested_model/outputs_merger.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/node_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/reader/reader.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/statistics_correction/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/statistics_correction/apply_second_moment_correction.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/tf_tensor_numpy.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/keras/visualization/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/factory_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/float_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/mixed_precision_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/model_gradients.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/quantization_wrapper/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/quantization_wrapper/quantized_layer_wrapper.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/quantization_wrapper/wrapper_quantize_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/back2framework/quantized_model_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/constants.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/default_framework_info.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/batchnorm_folding.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/batchnorm_reconstruction.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/batchnorm_refusing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/const_holder_conv.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/linear_collapsing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/multi_head_attention_decomposition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/permute_call_method.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/relu_bound_to_power_of_2.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/reshape_with_static_shapes.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/residual_collapsing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/scale_equalization.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/shift_negative_activation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/softmax_shift.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/virtual_activation_weights_composition.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/graph_substitutions/substitutions/weights_activation_split.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/kpi_data_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/mixed_precision/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/mixed_precision/mixed_precision_wrapper.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/mixed_precision/set_layer_to_bitwidth.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/pytorch_implementation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/pytorch_node_prior_info.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/quantizer/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/quantizer/fake_quant_builder.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/quantizer/lut_fake_quant.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/reader/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/reader/graph_builders.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/reader/node_holders.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/reader/reader.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/statistics_correction/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/statistics_correction/apply_second_moment_correction.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/pytorch/utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/core/runner.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/fw_agonstic/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/fw_agonstic/exporter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/base_keras_exporter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/export_serialization_format.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/keras/keras_export_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/pytorch/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/pytorch/base_pytorch_exporter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/pytorch/export_serialization_format.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_exporter/pytorch/pytorch_export_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/keras/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/keras/builder/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/keras/builder/node_to_quantizers.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/pytorch/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/pytorch/builder/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/exporter/model_wrapper/pytorch/builder/node_to_quantizers.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/common/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/common/gptq_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/common/gptq_constants.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/common/gptq_framework_implementation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/common/gptq_graph.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/common/gptq_training.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/gptq_keras_implementation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/gptq_loss.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantization_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/quant_utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/regularization_factory.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/soft_rounding/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/keras/quantizer/ste_rounding/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/gptq_loss.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/gptq_pytorch_implementation.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/quant_utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/regularization_factory.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/soft_rounding/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/pytorch/quantizer/ste_rounding/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/gptq/runner.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/legacy/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/legacy/keras_quantization_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/legacy/pytorch_quantization_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/logger.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/ptq/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/ptq/keras/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/ptq/keras/quantization_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/ptq/pytorch/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/ptq/pytorch/quantization_facade.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/ptq/runner.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/quant_utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/keras/quantizer/ste_rounding/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/quantizer_utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/qat/pytorch/quantizer/ste_rounding/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/constants.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/immutable.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/current_tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/fusing.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/operators.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/quantization_format.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/target_platform_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/target_platform_model_component.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/attribute_filter.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/current_tpc.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/layer_filter_params.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/operations_to_layers.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/target_platform_capabilities.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/target_platform/targetplatform2framework/target_platform_capabilities_component.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/latest/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/target_platform_capabilities.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v1/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v1/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v1/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v1/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v2/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v2/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v2/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v2/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3_lut/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3_lut/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3_lut/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v3_lut/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4_lut/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4_lut/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4_lut/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v4_lut/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v5/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v5/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v5/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/default_tpc/v5/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/get_target_platform_capabilities.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc}/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/latest/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/target_platform_capabilities.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/imx500_tpc/v1/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/latest/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/target_platform_capabilities.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/v1/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/v1/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/v1/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/qnnpack_tpc/v1/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/latest/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/target_platform_capabilities.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tp_model.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tpc_keras.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tpc_pytorch.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/trainable_infrastructure/common}/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/trainable_infrastructure/common}/constants.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/common/quant_utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/common/trainable_quantizer_config.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/trainable_infrastructure/keras}/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit}/trainable_infrastructure/keras/quantizer_utils.py +0 -0
- {mct-nightly-1.8.0.20052023.post401/model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras → mct-nightly-1.8.0.20230610.post356/model_compression_toolkit/trainable_infrastructure/pytorch}/__init__.py +0 -0
- {mct-nightly-1.8.0.20052023.post401 → mct-nightly-1.8.0.20230610.post356}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mct-nightly
|
|
3
|
-
Version: 1.8.0.
|
|
3
|
+
Version: 1.8.0.20230610.post356
|
|
4
4
|
Summary: A Model Compression Toolkit for neural networks
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
License: UNKNOWN
|
|
@@ -69,15 +69,17 @@ Description: # Model Compression Toolkit (MCT)
|
|
|
69
69
|
|
|
70
70
|
This section provides a quick starting guide. We begin with installation via source code or pip server. Then, we provide a short usage example.
|
|
71
71
|
|
|
72
|
-
###
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
#### From Source
|
|
72
|
+
### Setting up work environment
|
|
73
|
+
Clone the repository and install the required packages (via [requirements](requirements.txt)).
|
|
77
74
|
```
|
|
78
75
|
git clone https://github.com/sony/model_optimization.git
|
|
79
|
-
|
|
76
|
+
cd model_optimization
|
|
77
|
+
pip install -r requirements.txt
|
|
80
78
|
```
|
|
79
|
+
|
|
80
|
+
### Installation
|
|
81
|
+
See the MCT install guide for the pip package.
|
|
82
|
+
|
|
81
83
|
#### From PyPi - latest stable release
|
|
82
84
|
```
|
|
83
85
|
pip install model-compression-toolkit
|
|
@@ -63,15 +63,17 @@ For more details, we highly recommend visiting our project website where experim
|
|
|
63
63
|
|
|
64
64
|
This section provides a quick starting guide. We begin with installation via source code or pip server. Then, we provide a short usage example.
|
|
65
65
|
|
|
66
|
-
###
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
#### From Source
|
|
66
|
+
### Setting up work environment
|
|
67
|
+
Clone the repository and install the required packages (via [requirements](requirements.txt)).
|
|
71
68
|
```
|
|
72
69
|
git clone https://github.com/sony/model_optimization.git
|
|
73
|
-
|
|
70
|
+
cd model_optimization
|
|
71
|
+
pip install -r requirements.txt
|
|
74
72
|
```
|
|
73
|
+
|
|
74
|
+
### Installation
|
|
75
|
+
See the MCT install guide for the pip package.
|
|
76
|
+
|
|
75
77
|
#### From PyPi - latest stable release
|
|
76
78
|
```
|
|
77
79
|
pip install model-compression-toolkit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mct-nightly
|
|
3
|
-
Version: 1.8.0.
|
|
3
|
+
Version: 1.8.0.20230610.post356
|
|
4
4
|
Summary: A Model Compression Toolkit for neural networks
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
License: UNKNOWN
|
|
@@ -69,15 +69,17 @@ Description: # Model Compression Toolkit (MCT)
|
|
|
69
69
|
|
|
70
70
|
This section provides a quick starting guide. We begin with installation via source code or pip server. Then, we provide a short usage example.
|
|
71
71
|
|
|
72
|
-
###
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
#### From Source
|
|
72
|
+
### Setting up work environment
|
|
73
|
+
Clone the repository and install the required packages (via [requirements](requirements.txt)).
|
|
77
74
|
```
|
|
78
75
|
git clone https://github.com/sony/model_optimization.git
|
|
79
|
-
|
|
76
|
+
cd model_optimization
|
|
77
|
+
pip install -r requirements.txt
|
|
80
78
|
```
|
|
79
|
+
|
|
80
|
+
### Installation
|
|
81
|
+
See the MCT install guide for the pip package.
|
|
82
|
+
|
|
81
83
|
#### From PyPi - latest stable release
|
|
82
84
|
```
|
|
83
85
|
pip install model-compression-toolkit
|
|
@@ -340,68 +340,6 @@ model_compression_toolkit/qat/pytorch/quantizer/quantizer_utils.py
|
|
|
340
340
|
model_compression_toolkit/qat/pytorch/quantizer/ste_rounding/__init__.py
|
|
341
341
|
model_compression_toolkit/qat/pytorch/quantizer/ste_rounding/symmetric_ste.py
|
|
342
342
|
model_compression_toolkit/qat/pytorch/quantizer/ste_rounding/uniform_ste.py
|
|
343
|
-
model_compression_toolkit/quantizers_infrastructure/__init__.py
|
|
344
|
-
model_compression_toolkit/quantizers_infrastructure/constants.py
|
|
345
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/__init__.py
|
|
346
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/__init__.py
|
|
347
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/base_inferable_quantizer.py
|
|
348
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/constants.py
|
|
349
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/get_all_subclasses.py
|
|
350
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/get_quantizers.py
|
|
351
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/common/quant_utils.py
|
|
352
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/__init__.py
|
|
353
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/activation_quantization_holder.py
|
|
354
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/load_model.py
|
|
355
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantize_wrapper.py
|
|
356
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizer_utils.py
|
|
357
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/validation_functions.py
|
|
358
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/__init__.py
|
|
359
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/base_keras_inferable_quantizer.py
|
|
360
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/constants.py
|
|
361
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/__init__.py
|
|
362
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_lut_pot_inferable_quantizer.py
|
|
363
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_pot_inferable_quantizer.py
|
|
364
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_symmetric_inferable_quantizer.py
|
|
365
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/activation_inferable_quantizers/activation_uniform_inferable_quantizer.py
|
|
366
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/__init__.py
|
|
367
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_lut_pot_inferable_quantizer.py
|
|
368
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_lut_symmetric_inferable_quantizer.py
|
|
369
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_pot_inferable_quantizer.py
|
|
370
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_symmetric_inferable_quantizer.py
|
|
371
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/keras/quantizers/weights_inferable_quantizers/weights_uniform_inferable_quantizer.py
|
|
372
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/__init__.py
|
|
373
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantize_wrapper.py
|
|
374
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizer_utils.py
|
|
375
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/__init__.py
|
|
376
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_lut_symmetric_inferable_quantizer.py
|
|
377
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_pytorch_inferable_quantizer.py
|
|
378
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_symmetric_inferable_quantizer.py
|
|
379
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/base_uniform_inferable_quantizer.py
|
|
380
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/constants.py
|
|
381
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/__init__.py
|
|
382
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_lut_pot_inferable_quantizer.py
|
|
383
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_pot_inferable_quantizer.py
|
|
384
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_symmetric_inferable_quantizer.py
|
|
385
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/activation_inferable_quantizers/activation_uniform_inferable_quantizer.py
|
|
386
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/__init__.py
|
|
387
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_lut_pot_inferable_quantizer.py
|
|
388
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_lut_symmetric_inferable_quantizer.py
|
|
389
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_pot_inferable_quantizer.py
|
|
390
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_symmetric_inferable_quantizer.py
|
|
391
|
-
model_compression_toolkit/quantizers_infrastructure/inferable_infrastructure/pytorch/quantizers/weights_inferable_quantizers/weights_uniform_inferable_quantizer.py
|
|
392
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/__init__.py
|
|
393
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/__init__.py
|
|
394
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/base_trainable_quantizer.py
|
|
395
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/get_quantizer_config.py
|
|
396
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/get_quantizers.py
|
|
397
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/quant_utils.py
|
|
398
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/common/trainable_quantizer_config.py
|
|
399
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/keras/__init__.py
|
|
400
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/keras/base_keras_quantizer.py
|
|
401
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/keras/config_serialization.py
|
|
402
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/keras/quantizer_utils.py
|
|
403
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/pytorch/__init__.py
|
|
404
|
-
model_compression_toolkit/quantizers_infrastructure/trainable_infrastructure/pytorch/base_pytorch_quantizer.py
|
|
405
343
|
model_compression_toolkit/target_platform_capabilities/__init__.py
|
|
406
344
|
model_compression_toolkit/target_platform_capabilities/constants.py
|
|
407
345
|
model_compression_toolkit/target_platform_capabilities/immutable.py
|
|
@@ -473,4 +411,19 @@ model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/lat
|
|
|
473
411
|
model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/__init__.py
|
|
474
412
|
model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tp_model.py
|
|
475
413
|
model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tpc_keras.py
|
|
476
|
-
model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tpc_pytorch.py
|
|
414
|
+
model_compression_toolkit/target_platform_capabilities/tpc_models/tflite_tpc/v1/tpc_pytorch.py
|
|
415
|
+
model_compression_toolkit/trainable_infrastructure/__init__.py
|
|
416
|
+
model_compression_toolkit/trainable_infrastructure/common/__init__.py
|
|
417
|
+
model_compression_toolkit/trainable_infrastructure/common/base_trainable_quantizer.py
|
|
418
|
+
model_compression_toolkit/trainable_infrastructure/common/constants.py
|
|
419
|
+
model_compression_toolkit/trainable_infrastructure/common/get_quantizer_config.py
|
|
420
|
+
model_compression_toolkit/trainable_infrastructure/common/get_quantizers.py
|
|
421
|
+
model_compression_toolkit/trainable_infrastructure/common/quant_utils.py
|
|
422
|
+
model_compression_toolkit/trainable_infrastructure/common/trainable_quantizer_config.py
|
|
423
|
+
model_compression_toolkit/trainable_infrastructure/keras/__init__.py
|
|
424
|
+
model_compression_toolkit/trainable_infrastructure/keras/base_keras_quantizer.py
|
|
425
|
+
model_compression_toolkit/trainable_infrastructure/keras/config_serialization.py
|
|
426
|
+
model_compression_toolkit/trainable_infrastructure/keras/load_model.py
|
|
427
|
+
model_compression_toolkit/trainable_infrastructure/keras/quantizer_utils.py
|
|
428
|
+
model_compression_toolkit/trainable_infrastructure/pytorch/__init__.py
|
|
429
|
+
model_compression_toolkit/trainable_infrastructure/pytorch/base_pytorch_quantizer.py
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Copyright 2021 Sony Semiconductor Israel, Inc. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
# ==============================================================================
|
|
15
|
+
|
|
16
|
+
from model_compression_toolkit.target_platform_capabilities import target_platform
|
|
17
|
+
from model_compression_toolkit.target_platform_capabilities.tpc_models.get_target_platform_capabilities import get_target_platform_capabilities
|
|
18
|
+
from model_compression_toolkit import core
|
|
19
|
+
from model_compression_toolkit.logger import set_log_folder
|
|
20
|
+
from model_compression_toolkit.legacy.keras_quantization_facade import keras_post_training_quantization, keras_post_training_quantization_mixed_precision
|
|
21
|
+
from model_compression_toolkit.legacy.pytorch_quantization_facade import pytorch_post_training_quantization, pytorch_post_training_quantization_mixed_precision
|
|
22
|
+
from model_compression_toolkit import trainable_infrastructure
|
|
23
|
+
from model_compression_toolkit import ptq
|
|
24
|
+
from model_compression_toolkit import qat
|
|
25
|
+
from model_compression_toolkit import exporter
|
|
26
|
+
from model_compression_toolkit import gptq
|
|
27
|
+
from model_compression_toolkit.trainable_infrastructure.keras.load_model import keras_load_quantized_model
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Old API (will not be accessible in future releases)
|
|
31
|
+
from model_compression_toolkit.core.common import network_editors as network_editor
|
|
32
|
+
from model_compression_toolkit.core.common.quantization import quantization_config
|
|
33
|
+
from model_compression_toolkit.core.common.mixed_precision import mixed_precision_quantization_config
|
|
34
|
+
from model_compression_toolkit.core.common.quantization.debug_config import DebugConfig
|
|
35
|
+
from model_compression_toolkit.core.common.quantization.quantization_config import QuantizationConfig, QuantizationErrorMethod, DEFAULTCONFIG
|
|
36
|
+
from model_compression_toolkit.core.common.mixed_precision.kpi_tools.kpi import KPI
|
|
37
|
+
from model_compression_toolkit.core.common.mixed_precision.mixed_precision_quantization_config import MixedPrecisionQuantizationConfig
|
|
38
|
+
from model_compression_toolkit.logger import set_log_folder
|
|
39
|
+
from model_compression_toolkit.core.common.data_loader import FolderImageLoader
|
|
40
|
+
from model_compression_toolkit.core.common.framework_info import FrameworkInfo, ChannelAxis
|
|
41
|
+
from model_compression_toolkit.core.common.defaultdict import DefaultDict
|
|
42
|
+
from model_compression_toolkit.legacy.keras_quantization_facade import keras_post_training_quantization, keras_post_training_quantization_mixed_precision
|
|
43
|
+
from model_compression_toolkit.legacy.pytorch_quantization_facade import pytorch_post_training_quantization, pytorch_post_training_quantization_mixed_precision
|
|
44
|
+
from model_compression_toolkit.core.keras.kpi_data_facade import keras_kpi_data
|
|
45
|
+
from model_compression_toolkit.core.pytorch.kpi_data_facade import pytorch_kpi_data
|
|
46
|
+
from model_compression_toolkit.gptq.common.gptq_config import GradientPTQConfig
|
|
47
|
+
from model_compression_toolkit.gptq.common.gptq_config import RoundingType
|
|
48
|
+
from model_compression_toolkit.gptq.keras.quantization_facade import get_keras_gptq_config
|
|
49
|
+
from model_compression_toolkit.gptq.pytorch.quantization_facade import get_pytorch_gptq_config
|
|
50
|
+
|
|
51
|
+
__version__ = "1.8.0"
|
|
@@ -22,7 +22,7 @@ from typing import Dict, Any, List
|
|
|
22
22
|
|
|
23
23
|
from model_compression_toolkit.core.common.defaultdict import DefaultDict
|
|
24
24
|
from model_compression_toolkit.core.common.graph.base_node import BaseNode
|
|
25
|
-
from model_compression_toolkit.target_platform_capabilities.target_platform
|
|
25
|
+
from model_compression_toolkit.target_platform_capabilities.target_platform import QuantizationMethod
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class ChannelAxis(Enum):
|
|
@@ -31,14 +31,22 @@ class OperationHandler:
|
|
|
31
31
|
Class to handle conversions from graph nodes to Keras operators and retrieving them.
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
|
-
def __init__(self, graph: Graph):
|
|
34
|
+
def __init__(self, graph: Graph, wrapper: Callable = None):
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
graph: Graph to build its layers based on its nodes.
|
|
39
|
+
wrapper: Wrapper to use for wrapping the layers.
|
|
40
|
+
"""
|
|
41
|
+
|
|
35
42
|
# hold nodes after sorting them
|
|
36
43
|
self.node_sort = list(topological_sort(graph))
|
|
37
44
|
|
|
38
45
|
self.layer_to_node_dict = {}
|
|
39
46
|
|
|
40
47
|
# hold dictionary from node to its equivalent Keras layer
|
|
41
|
-
self.node_to_fw_op_dict = instance_builder(self.node_sort
|
|
48
|
+
self.node_to_fw_op_dict = instance_builder(self.node_sort,
|
|
49
|
+
wrapper)
|
|
42
50
|
|
|
43
51
|
def get_node_op_function(self, n: BaseNode) -> Layer:
|
|
44
52
|
"""
|
|
@@ -74,12 +82,7 @@ def node_builder(n: common.BaseNode) -> Layer:
|
|
|
74
82
|
Keras layer that was built from the node.
|
|
75
83
|
"""
|
|
76
84
|
framework_attr = copy.copy(n.framework_attr)
|
|
77
|
-
|
|
78
|
-
# replace input node with identity, so can wrap it with QuantizationWrapper
|
|
79
|
-
_layer_class = Layer # Identity
|
|
80
|
-
framework_attr = {}
|
|
81
|
-
else:
|
|
82
|
-
_layer_class = n.layer_class
|
|
85
|
+
_layer_class = n.layer_class
|
|
83
86
|
framework_attr[LAYER_NAME] = n.name # Overwrite framework name to identical graph node name
|
|
84
87
|
node_instance = _layer_class.from_config(framework_attr) # Build layer from node's configuration.
|
|
85
88
|
with tf.name_scope(n.name):
|
|
@@ -90,13 +93,15 @@ def node_builder(n: common.BaseNode) -> Layer:
|
|
|
90
93
|
return node_instance
|
|
91
94
|
|
|
92
95
|
|
|
93
|
-
def instance_builder(toposort: List[BaseNode]
|
|
96
|
+
def instance_builder(toposort: List[BaseNode],
|
|
97
|
+
wrapper: Callable = None) -> Dict[BaseNode, Layer]:
|
|
94
98
|
"""
|
|
95
99
|
Build a dictionary of nodes to their corresponding Keras
|
|
96
100
|
layers, given a list of nodes.
|
|
97
101
|
|
|
98
102
|
Args:
|
|
99
103
|
toposort: List of nodes sorted topological to build their layers.
|
|
104
|
+
wrapper: Wrapper to use for wrapping the layers.
|
|
100
105
|
|
|
101
106
|
Returns:
|
|
102
107
|
A dictionary of nodes to their corresponding Keras layers.
|
|
@@ -106,6 +111,8 @@ def instance_builder(toposort: List[BaseNode]) -> Dict[BaseNode, Layer]:
|
|
|
106
111
|
for n in toposort:
|
|
107
112
|
if not n.reuse: # Hold a single node in dictionary for all reused nodes from the same layer.
|
|
108
113
|
keras_node = node_builder(n)
|
|
114
|
+
if wrapper is not None:
|
|
115
|
+
keras_node = wrapper(n, keras_node)
|
|
109
116
|
nodes_dict.update({n: keras_node})
|
|
110
117
|
|
|
111
118
|
return nodes_dict
|
|
@@ -21,7 +21,7 @@ from packaging import version
|
|
|
21
21
|
from model_compression_toolkit.constants import INPUT_BASE_NAME
|
|
22
22
|
from model_compression_toolkit.core.common.back2framework.base_model_builder import BaseModelBuilder
|
|
23
23
|
from model_compression_toolkit.core.common.user_info import UserInformation
|
|
24
|
-
from
|
|
24
|
+
from mct_quantizers import KerasActivationQuantizationHolder
|
|
25
25
|
|
|
26
26
|
# As from Tensorflow 2.6, keras is a separate package and some classes should be imported differently.
|
|
27
27
|
if version.parse(tf.__version__) < version.parse("2.6"):
|
|
@@ -113,7 +113,8 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
113
113
|
return_float_outputs)
|
|
114
114
|
|
|
115
115
|
# Build an OperationHandler to handle conversions from graph nodes to Keras operators.
|
|
116
|
-
self.oh = OperationHandler(self.graph
|
|
116
|
+
self.oh = OperationHandler(self.graph,
|
|
117
|
+
wrapper=wrapper)
|
|
117
118
|
self.wrapper = wrapper
|
|
118
119
|
self.get_activation_quantizer_holder = get_activation_quantizer_holder_fn
|
|
119
120
|
|
|
@@ -121,7 +122,7 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
121
122
|
def use_activation_holder_during_model_building(self) -> bool:
|
|
122
123
|
"""
|
|
123
124
|
|
|
124
|
-
Returns: Whether the model builder uses
|
|
125
|
+
Returns: Whether the model builder uses KerasActivationQuantizationHolder during
|
|
125
126
|
model building (by adding it as a layer when converting the graph to the Keras model)
|
|
126
127
|
or not. If so - the model builder expects the activation quantizers to not be wrapped
|
|
127
128
|
in KerasQuantizeWrapper that was received in its init.
|
|
@@ -172,11 +173,6 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
172
173
|
for
|
|
173
174
|
inode in self.graph.get_inputs()}
|
|
174
175
|
|
|
175
|
-
# Support adding Layer after input layers require us to store it in layer_to_node_dict
|
|
176
|
-
# dict offline (unlike other layers which stored during running).
|
|
177
|
-
for node, layer in self.oh.node_to_fw_op_dict.items():
|
|
178
|
-
if node.type == InputLayer:
|
|
179
|
-
self.oh.layer_to_node_dict[layer] = node
|
|
180
176
|
|
|
181
177
|
# Build a list of the model's input tensors. Switching from a dictionary to a list
|
|
182
178
|
# to keep the tensors input order, since inputs in Graph are ordered by their indices.
|
|
@@ -186,7 +182,8 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
186
182
|
|
|
187
183
|
# Build a dictionary from node to its output tensors, by applying the layers sequentially.
|
|
188
184
|
for n in self.oh.node_sort:
|
|
189
|
-
op_func = self.oh.get_node_op_function(n)
|
|
185
|
+
op_func = self.oh.get_node_op_function(n) # Get node operation function
|
|
186
|
+
|
|
190
187
|
input_tensors = self._build_input_tensors_list(n,
|
|
191
188
|
node_to_output_tensors_dict) # Fetch Node inputs
|
|
192
189
|
out_tensors_of_n, out_tensors_of_n_float = self._run_operation(n, # Run node operation and fetch outputs
|
|
@@ -223,22 +220,6 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
223
220
|
# Build the model.
|
|
224
221
|
model = tf.keras.Model(inputs=inputs_list, outputs=model_output_tensors)
|
|
225
222
|
|
|
226
|
-
if self.wrapper is not None:
|
|
227
|
-
def _wrap(layer):
|
|
228
|
-
_node = self.oh.layer_to_node_dict.get(layer)
|
|
229
|
-
if _node is not None:
|
|
230
|
-
return self.wrapper(_node,
|
|
231
|
-
layer)
|
|
232
|
-
|
|
233
|
-
elif is_layer_fake_quant(layer) or isinstance(layer, ActivationQuantizationHolder):
|
|
234
|
-
return layer
|
|
235
|
-
|
|
236
|
-
raise Exception( # pragma: no cover
|
|
237
|
-
f'Mismatch between keras model and graph cant find node named: '
|
|
238
|
-
f'{get_node_name_from_layer(layer)}')
|
|
239
|
-
|
|
240
|
-
model = clone_model(model, clone_function=_wrap)
|
|
241
|
-
|
|
242
223
|
return model, self.graph.user_info
|
|
243
224
|
|
|
244
225
|
def _convert_node2name(self, in_node_to_output_tensors_dict):
|
|
@@ -295,8 +276,7 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
295
276
|
if len(input_tensors) == 0: # Placeholder handling
|
|
296
277
|
out_tensors_of_n_float = input_nodes_to_input_tensors[n]
|
|
297
278
|
out_tensors_of_n = self._run_operation_activation_quantization(n,
|
|
298
|
-
out_tensors_of_n_float
|
|
299
|
-
op_func)
|
|
279
|
+
out_tensors_of_n_float)
|
|
300
280
|
else:
|
|
301
281
|
input_tensors = [tensor for tensor_list in input_tensors for tensor in tensor_list] # flat list of lists
|
|
302
282
|
# Build a functional node using its args
|
|
@@ -331,24 +311,18 @@ class KerasModelBuilder(BaseModelBuilder):
|
|
|
331
311
|
|
|
332
312
|
def _run_operation_activation_quantization(self,
|
|
333
313
|
node: BaseNode,
|
|
334
|
-
node_outputs: List[TFReference]
|
|
335
|
-
identity_layer: Layer = None):
|
|
314
|
+
node_outputs: List[TFReference]):
|
|
336
315
|
"""
|
|
337
316
|
Quantize node's activations
|
|
338
317
|
|
|
339
318
|
Args:
|
|
340
319
|
node: Node to quantize its activations
|
|
341
320
|
node_outputs: Output tensors of the float node.
|
|
342
|
-
identity_layer: Identity layer (should be passed only when quantizing input layers)
|
|
343
321
|
|
|
344
322
|
Returns:
|
|
345
323
|
Quantized node's outputs.
|
|
346
324
|
"""
|
|
347
325
|
if self.wrapper is not None:
|
|
348
|
-
# If identity layer was passed, use it for inference
|
|
349
|
-
# (needed since wrapping an Input layer can not be wrapped)
|
|
350
|
-
if identity_layer is not None:
|
|
351
|
-
node_outputs = identity_layer(node_outputs)
|
|
352
326
|
|
|
353
327
|
# In case the activation quantizer is attached out of the wrapper we use get_activation_quantizer_holder
|
|
354
328
|
# for the activation quantization holder (if the node's activations are quantized)
|
|
@@ -38,12 +38,16 @@ def node_builder(n: BaseNode) -> Module:
|
|
|
38
38
|
return node_instance
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
# todo: remove. It is not used anymore
|
|
42
|
+
def identity_wrapper(node: BaseNode,
|
|
43
|
+
module: Module,
|
|
44
|
+
include_activation_quantizers: bool):
|
|
42
45
|
"""
|
|
43
46
|
A function which takes a computational graph node and a pytorch module and return an identity wrapping which return the layer itself
|
|
44
47
|
Args:
|
|
45
48
|
node: A node of mct graph.
|
|
46
49
|
layer: A pytorch module
|
|
50
|
+
include_activation_quantizers: bool flag.
|
|
47
51
|
Returns: pytorch module
|
|
48
52
|
"""
|
|
49
53
|
return module
|