nncf/experimental/torch/nas/bootstrapNAS/elasticity/elastic_width.py
def from_config(cls, config: Dict[str, Any]) -> 'ElasticWidthParams':
        """
        Creates the object from its config.
        """
        kwargs = {
            cls._state_names.MIN_WIDTH: config.get(cls._state_names.MIN_WIDTH, 32),
            cls._state_names.MAX_NUM_WIDTHS: config.get(cls._state_names.MAX_NUM_WIDTHS, -1),
            cls._state_names.WIDTH_STEP: config.get(cls._state_names.WIDTH_STEP, 32),
            cls._state_names.WIDTH_MULTIPLIERS: config.get(cls._state_names.WIDTH_MULTIPLIERS),
            cls._state_names.FILTER_IMPORTANCE: config.get(cls._state_names.FILTER_IMPORTANCE, 'L1'),
        }
        return cls(**kwargs)

        Creates the object from its config.
        
Creates the object from its config.
Creates the object from its config .
def from_config(cls, config: Dict[str, Any]) -> 'ElasticWidthParams':
        kwargs = {
            cls._state_names.MIN_WIDTH: config.get(cls._state_names.MIN_WIDTH, 32),
            cls._state_names.MAX_NUM_WIDTHS: config.get(cls._state_names.MAX_NUM_WIDTHS, -1),
            cls._state_names.WIDTH_STEP: config.get(cls._state_names.WIDTH_STEP, 32),
            cls._state_names.WIDTH_MULTIPLIERS: config.get(cls._state_names.WIDTH_MULTIPLIERS),
            cls._state_names.FILTER_IMPORTANCE: config.get(cls._state_names.FILTER_IMPORTANCE, 'L1'),
        }
        return cls(**kwargs)
def from_config ( cls , config : Dict [ str , Any ] ) -> 'ElasticWidthParams' : kwargs = { cls . _state_names . MIN_WIDTH : config . get ( cls . _state_names . MIN_WIDTH , 32 ) , cls . _state_names . MAX_NUM_WIDTHS : config . get ( cls . _state_names . MAX_NUM_WIDTHS , - 1 ) , cls . _state_names . WIDTH_STEP : config . get ( cls . _state_names . WIDTH_STEP , 32 ) , cls . _state_names . WIDTH_MULTIPLIERS : config . get ( cls . _state_names . WIDTH_MULTIPLIERS ) , cls . _state_names . FILTER_IMPORTANCE : config . get ( cls . _state_names . FILTER_IMPORTANCE , 'L1' ) , } return cls ( ** kwargs )
Creates the object from its config.
Creates the object from its config .
"""
        Creates the object from its config.
        """
cls
config
Dict[str, Any]