TrainingExtensions/common/src/python/aimet_common/quantsim_config/json_config_importer.py
def import_json_config_file(cls, config_file: str) -> ConfigDictType:
        """
        Import json config file, run syntax and semantic validation, and return configs as a dictionary
        :param config_file: Config file to parse
        :return: Quantsim configs dictionary
        """
        try:
            with open(config_file) as configs:
                try:
                    quantsim_configs = json.load(configs)
                except json.decoder.JSONDecodeError:
                    logger.error('Error parsing json config file')
                    raise AssertionError
        except IOError:
            logger.error('Could not open json config file')
            raise AssertionError

        _validate_syntax(quantsim_configs)
        _convert_configs_values_to_bool(quantsim_configs)
        _validate_semantics(quantsim_configs)
        return quantsim_configs

        Import json config file, run syntax and semantic validation, and return configs as a dictionary
        :param config_file: Config file to parse
        :return: Quantsim configs dictionary
        
Import json config file, run syntax and semantic validation, and return configs as a dictionary
Import json config file run syntax and semantic validation and return configs as a dictionary
def import_json_config_file(cls, config_file: str) -> ConfigDictType:
        try:
            with open(config_file) as configs:
                try:
                    quantsim_configs = json.load(configs)
                except json.decoder.JSONDecodeError:
                    logger.error('Error parsing json config file')
                    raise AssertionError
        except IOError:
            logger.error('Could not open json config file')
            raise AssertionError
        _validate_syntax(quantsim_configs)
        _convert_configs_values_to_bool(quantsim_configs)
        _validate_semantics(quantsim_configs)
        return quantsim_configs
def import_json_config_file ( cls , config_file : str ) -> ConfigDictType : try : with open ( config_file ) as configs : try : quantsim_configs = json . load ( configs ) except json . decoder . JSONDecodeError : logger . error ( 'Error parsing json config file' ) raise AssertionError except IOError : logger . error ( 'Could not open json config file' ) raise AssertionError _validate_syntax ( quantsim_configs ) _convert_configs_values_to_bool ( quantsim_configs ) _validate_semantics ( quantsim_configs ) return quantsim_configs
Import json config file, run syntax and semantic validation, and return configs as a dictionary
Import json config file run syntax and semantic validation and return configs as a dictionary
"""
        Import json config file, run syntax and semantic validation, and return configs as a dictionary
        :param config_file: Config file to parse
        :return: Quantsim configs dictionary
        """
Quantsim configs dictionary
Quantsim configs dictionary
cls
config_file
str
Config file to parse
Config file to parse