TrainingExtensions/common/src/python/aimet_common/quantsim_config/json_config_importer.py
def _convert_configs_values_to_bool(dictionary: Dict):
    """
    Recursively traverse all key value pairs in dictionary and set any string values representing booleans to
    booleans.
    :param dictionary: Dictionary to set values to True or False if applicable
    """
    for key, value in dictionary.items():
        if value == 'True':
            dictionary[key] = True
        elif value == 'False':
            dictionary[key] = False
        elif isinstance(value, List):
            for item in value:
                if isinstance(item, Dict):
                    _convert_configs_values_to_bool(item)
        elif isinstance(value, Dict):
            _convert_configs_values_to_bool(value)
        else:
            pass

    Recursively traverse all key value pairs in dictionary and set any string values representing booleans to
    booleans.
    :param dictionary: Dictionary to set values to True or False if applicable
    
Recursively traverse all key value pairs in dictionary and set any string values representing booleans to
booleans.
Recursively traverse all key value pairs in dictionary and set any string values representing booleans to booleans .
def _convert_configs_values_to_bool(dictionary: Dict):
    for key, value in dictionary.items():
        if value == 'True':
            dictionary[key] = True
        elif value == 'False':
            dictionary[key] = False
        elif isinstance(value, List):
            for item in value:
                if isinstance(item, Dict):
                    _convert_configs_values_to_bool(item)
        elif isinstance(value, Dict):
            _convert_configs_values_to_bool(value)
        else:
            pass
def _convert_configs_values_to_bool ( dictionary : Dict ) : for key , value in dictionary . items ( ) : if value == 'True' : dictionary [ key ] = True elif value == 'False' : dictionary [ key ] = False elif isinstance ( value , List ) : for item in value : if isinstance ( item , Dict ) : _convert_configs_values_to_bool ( item ) elif isinstance ( value , Dict ) : _convert_configs_values_to_bool ( value ) else : pass
Recursively traverse all key value pairs in dictionary and set any string values representing booleans to
booleans.
Recursively traverse all key value pairs in dictionary and set any string values representing booleans to booleans .
"""
    Recursively traverse all key value pairs in dictionary and set any string values representing booleans to
    booleans.
    :param dictionary: Dictionary to set values to True or False if applicable
    """
dictionary
Dict
Dictionary to set values to True or False if applicable
Dictionary to set values to True or False if applicable