Settings
CLASS - Settings(
- training_settings:
TrainingSettings
= |factory|- global_quantization_settings:
BaseQATQuantizationSettings
= |factory|- deployment_settings:
Optional[BaseDeploymentSettings]
= None- layer_settings:
Optional[Dict[str, LayerSettings]]
= |factory|)
This Dataclass holds all the information necessary to run CLIKA Compression.
Class Variables
- deployment_settings (
Optional[BaseDeploymentSettings]
) - Deployment Settings that are applied Globally. Must be set. - global_quantization_settings (
BaseQATQuantizationSettings
) - Quantization Settings that are applied Globally - layer_settings (
Optional[Dict[str, LayerSettings]]
) - Settings that are applied for specific Layers. - training_settings (
TrainingSettings
) - Training Settings
Methods
get_layer_settings
get_layer_settings(self,
- name:
str
) ‑>
Optional[LayerSettings]
Parameters:
- name (
str
) - Name of Layer
Returns:
Optional[LayerSettings]
: The Layer Settings for the given Layer with the name argument
set_layer_settings
set_layer_settings(self,
- name:
str
- settings:
LayerSettings
) ‑>
None
Parameters:
- name (
str
) - Name of Layer - settings (
LayerSettings
) - Settings of the Layer.
set_quantization_settings_for_layer
set_quantization_settings_for_layer(self,
- name:
str
- settings:
BaseQuantizationSettings
) ‑>
None
Parameters:
- name (
str
) - name of the Layer - settings (
BaseQuantizationSettings
) - The Quantization Settings for a specific Layer.
Returns:
None
: