neural_compressor.ux.components.configuration_wizard.configuration_parser
¶
Configuration type parser.
Module Contents¶
Classes¶
Configuration type parser class. |
Functions¶
|
Parse value to list. |
|
Parse multi dimensional list. |
|
Add wrap string list into brackets if missing. |
- class neural_compressor.ux.components.configuration_wizard.configuration_parser.ConfigurationParser¶
Configuration type parser class.
- parse(input_data: dict) dict ¶
Parse configuration.
- parse_evaluation_data(evaluation_data: dict) None ¶
Parse input evaluation data.
- parse_transforms(transforms_data: List[dict]) List[dict] ¶
Parse transforms list.
- parse_dataloader(dataloader_data: dict) dict ¶
Parse dataloader dict.
- parse_metric(metric_data: dict) dict ¶
Parse metric data.
- get_param_type(param_group: str, param_name: str) Type | List[Type] ¶
Get parameter type.
- static parse_value(value: Any, required_type: Type | List[Type] | List[List[Type]]) Any ¶
Parse value to required type.
- neural_compressor.ux.components.configuration_wizard.configuration_parser.parse_list_value(value: Any, required_type: Type | List[Type] | List[List[Type]]) List[Any] ¶
Parse value to list.
- neural_compressor.ux.components.configuration_wizard.configuration_parser.parse_multidim_list(value: Any, required_type: List[Type]) List[Any | List[Any]] ¶
Parse multi dimensional list.
- neural_compressor.ux.components.configuration_wizard.configuration_parser.normalize_string_list(string_list: str, required_type: Type | List[Type]) str ¶
Add wrap string list into brackets if missing.