Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notebooks after tpc refactor #1286

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@
"\n",
" # Create the quantization configuration options and model\n",
" default_configuration_options = tp.QuantizationConfigOptions([default_config])\n",
" tp_model = tp.TargetPlatformModel(default_configuration_options)\n",
" tp_model = tp.TargetPlatformModel(default_configuration_options,\n",
" tpc_minor_version=1,\n",
" tpc_patch_version=0,\n",
" tpc_platform_type=\"custom_pruning_notebook_tpc\")\n",
"\n",
" # Return the target platform capabilities\n",
" tpc = tp.TargetPlatformCapabilities(tp_model)\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@
},
"outputs": [],
"source": [
"from model_compression_toolkit.target_platform_capabilities.schema.mct_current_schema import Signedness, AttributeQuantizationConfig\n",
"from model_compression_toolkit import DefaultDict\n",
"from model_compression_toolkit.target_platform_capabilities.target_platform.op_quantization_config import AttributeQuantizationConfig, Signedness\n",
"from model_compression_toolkit.constants import FLOAT_BITWIDTH\n",
"from model_compression_toolkit.target_platform_capabilities.constants import KERNEL_ATTR, KERAS_KERNEL, BIAS_ATTR, BIAS\n",
"\n",
Expand Down Expand Up @@ -254,7 +254,10 @@
" # Set default QuantizationConfigOptions in new TargetPlatformModel to be used when no other\n",
" # QuantizationConfigOptions is set for an OperatorsSet.\n",
" default_configuration_options = tp.QuantizationConfigOptions([default_config])\n",
" tp_model = tp.TargetPlatformModel(default_configuration_options)\n",
" tp_model = tp.TargetPlatformModel(default_configuration_options,\n",
" tpc_minor_version=1,\n",
" tpc_patch_version=0,\n",
" tpc_platform_type=\"custom_qat_notebook_tpc\")\n",
" with tp_model:\n",
" default_qco = tp.get_default_quantization_config_options()\n",
" # Group of OperatorsSets that should not be quantized.\n",
Expand Down
Loading